:root {
  --sky: #9fdcff;
  --grass-1: #87cf68;
  --grass-2: #5aa845;
  --sand: #f7eed2;
  --card: rgba(255, 248, 237, 0.92);
  --ink: #243341;
  --muted: #61727f;
  --accent: #ff8e5e;
  --accent-deep: #ec6d32;
  --line: rgba(36, 51, 65, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Trebuchet MS", "Avenir Next", sans-serif;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 14%, rgba(255, 240, 178, 0.95) 0 6%, transparent 6.2%),
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.75) 0 4%, transparent 4.2%),
    radial-gradient(circle at 78% 16%, rgba(255, 232, 166, 0.9) 0 5%, transparent 5.2%),
    radial-gradient(circle at 84% 74%, rgba(255, 255, 255, 0.45) 0 7%, transparent 7.2%),
    radial-gradient(circle at 50% 50%, rgba(172, 228, 118, 0.9) 0 32%, rgba(116, 193, 76, 0.96) 55%, rgba(68, 143, 44, 0.98) 100%),
    linear-gradient(180deg, #80d15e 0, var(--grass-1) 60%, var(--grass-2) 100%);
}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(17, 27, 21, 0.7);
  backdrop-filter: blur(10px);
  transition: opacity 220ms ease, visibility 220ms ease;
}

.loading-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-overlay-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 230, 157, 0.35), transparent 18%),
    radial-gradient(circle at 78% 18%, rgba(148, 212, 255, 0.26), transparent 19%),
    radial-gradient(circle at 50% 78%, rgba(255, 182, 120, 0.2), transparent 21%),
    linear-gradient(180deg, rgba(88, 123, 56, 0.2), rgba(38, 61, 34, 0.58));
}

.loading-overlay.is-luga .loading-overlay-bg {
  background:
    radial-gradient(circle at 16% 20%, rgba(255, 248, 194, 0.34), transparent 16%),
    radial-gradient(circle at 78% 14%, rgba(189, 227, 255, 0.28), transparent 18%),
    radial-gradient(circle at 52% 72%, rgba(197, 255, 169, 0.18), transparent 22%),
    linear-gradient(180deg, rgba(146, 197, 116, 0.18), rgba(59, 109, 71, 0.56));
}

.loading-overlay-card {
  position: relative;
  width: min(92vw, 440px);
  display: grid;
  gap: 10px;
  padding: 22px 20px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 248, 219, 0.94), transparent 22%),
    linear-gradient(145deg, rgba(255, 250, 239, 0.94), rgba(243, 233, 210, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 24px 60px rgba(19, 31, 21, 0.24);
}

.loading-kicker {
  color: #7d674a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.loading-title {
  font-size: 30px;
  line-height: 1.05;
  font-family: "Georgia", "Times New Roman", serif;
}

.loading-text {
  color: #6e5f52;
  line-height: 1.45;
}

.loading-progress {
  overflow: hidden;
  height: 12px;
  border-radius: 999px;
  background: rgba(120, 92, 56, 0.14);
}

.loading-progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f0b16f, #ff8e5e 48%, #f2d68f);
  box-shadow: 0 6px 18px rgba(230, 137, 79, 0.26);
  transition: width 180ms ease;
}

.loading-meta {
  color: #856d51;
  font-weight: 800;
  text-align: right;
}

.shell {
  max-width: none;
  margin: 0 auto;
  padding: 8px 10px 10px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#worldView {
  display: flex;
  flex: 1;
  min-height: 0;
}

.topbar,
.hero,
.card-head,
.profile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbar {
  display: none;
}

.eyebrow,
.subtle {
  color: rgba(36, 51, 65, 0.74);
}

.eyebrow {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 32px;
}

h2 {
  font-size: 24px;
}

.hero {
  display: none;
}

.uid-picker {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.uid-picker input {
  width: 180px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
}

.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  width: 100%;
  min-height: 0;
}

.stack,
.grid-2,
.grid-3 {
  display: grid;
  gap: 18px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

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

.card {
  padding: 16px;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 16px 40px rgba(24, 51, 70, 0.08);
}

.scene-card {
  position: relative;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.scene-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.scene-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pill {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--accent);
  color: white;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(236, 109, 50, 0.25);
}

.user-chip,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 248, 237, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
}

.meadow {
  position: relative;
  min-height: 0;
  flex: 1;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  touch-action: none;
  background:
    linear-gradient(180deg, rgba(66, 115, 34, 0.12), rgba(66, 115, 34, 0.18)),
    url("/assets/meadow-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.meadow.meadow-orchard {
  background:
    linear-gradient(180deg, rgba(255, 244, 191, 0.08), rgba(54, 126, 72, 0.1)),
    url("/assets/meadow-orchard-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.meadow-world {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.orchard-river-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.orchard-river-item,
.orchard-launch-btn {
  pointer-events: auto;
}

.orchard-river-item {
  position: absolute;
  width: var(--orchard-item-width, 56px);
  height: var(--orchard-item-height, 56px);
  border: 0;
  background: none;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 8px 10px rgba(27, 62, 52, 0.16));
  animation: none;
}

.orchard-river-item-art {
  display: block;
  width: var(--orchard-item-width, 56px);
  height: var(--orchard-item-height, 56px);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.orchard-river-item.is-star .orchard-river-item-art {
  display: grid;
  place-items: center;
  color: #f7ba2c;
  font-size: 22px;
  width: var(--orchard-item-width, 56px);
  height: var(--orchard-item-height, 56px);
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 246, 199, 0.92), rgba(255, 223, 133, 0.58) 56%, rgba(255, 223, 133, 0.05) 78%);
}

.orchard-launch-btn {
  position: absolute;
  left: 20px;
  top: 206px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 248, 237, 0.72);
  box-shadow: 0 10px 18px rgba(56, 49, 24, 0.16);
  color: #6f4516;
  font: inherit;
  font-weight: 800;
  animation: orchardLaunchPulse 2.8s ease-in-out infinite;
}

.orchard-launch-btn span {
  font-size: 20px;
}

.orchard-item-copy {
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 18px;
  line-height: 1.82;
  color: #5f4020;
  letter-spacing: 0.01em;
}

.orchard-item-copy strong {
  display: block;
  margin-bottom: 2px;
  font-size: 22px;
  line-height: 1.28;
  color: #3c2a18;
}

.orchard-item-copy span {
  display: block;
}

.orchard-item-author {
  margin: 0 0 6px;
}

.interaction-panel.is-orchard-item {
  padding: 10px 10px 12px;
}

.interaction-panel.is-orchard-item .interaction-close {
  margin-bottom: 0;
}

.interaction-panel.is-orchard-item .interaction-panel-body {
  gap: 4px;
  padding-top: 0;
}

.interaction-panel.is-orchard-item .interaction-title {
  margin-right: 42px;
  margin-bottom: 8px;
}

@keyframes orchardRiverBob {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(-2deg) translateY(0);
  }
  50% {
    transform: translate(-50%, -50%) rotate(2.6deg) translateY(-4px);
  }
}

@keyframes orchardLaunchPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 10px 18px rgba(56, 49, 24, 0.14);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 12px 22px rgba(56, 49, 24, 0.2);
  }
}

.location-preview {
  position: absolute;
  inset: 0;
  z-index: 26;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(66, 115, 34, 0.12), rgba(66, 115, 34, 0.18)),
    url("/assets/meadow-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.location-preview-hidden {
  display: none;
}

.location-preview-card {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  align-items: stretch;
  align-content: stretch;
  gap: 10px;
}

.location-preview-close {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font: inherit;
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 8px 16px rgba(24, 51, 70, 0.14);
}

.location-preview-stage {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 0;
  margin-bottom: -2px;
}

.location-preview-frame {
  width: min(94vw, 640px);
  height: min(46dvh, 332px);
  padding: 0;
  border-radius: 22px;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.location-preview-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  margin: 0 auto;
  transform: scale(var(--preview-scale, 1));
  transform-origin: var(--preview-origin, 50% 50%);
  filter:
    drop-shadow(0 0 20px rgba(255, 238, 158, 0.95))
    drop-shadow(0 18px 24px rgba(72, 55, 22, 0.3));
}

.location-preview-copy {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 6px;
  justify-items: center;
  margin-top: 10px;
}

.location-preview-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 248, 237, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.location-preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.location-preview-actions {
  position: relative;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding-bottom: max(6px, env(safe-area-inset-bottom));
}

.avatar-preview-card {
  justify-items: center;
}

.avatar-preview-stage {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  padding-top: 24px;
}

.avatar-preview-figure {
  width: min(72vw, 280px);
  height: min(46dvh, 360px);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter:
    drop-shadow(0 0 22px rgba(255, 239, 180, 0.92))
    drop-shadow(0 24px 28px rgba(39, 27, 10, 0.3));
}

.avatar-preview-figure.is-incognito,
.avatar-preview-card .is-incognito {
  filter:
    brightness(0)
    saturate(0)
    contrast(1.24)
    drop-shadow(0 0 22px rgba(255, 239, 180, 0.42))
    drop-shadow(0 24px 28px rgba(10, 10, 10, 0.38));
}

.avatar-preview-copy {
  width: min(92vw, 620px);
  display: grid;
  gap: 10px;
  justify-items: center;
}

.avatar-preview-title {
  font-size: clamp(28px, 5.4vw, 42px);
  font-weight: 800;
  line-height: 1.04;
  text-align: center;
  color: #243127;
  text-shadow: 0 2px 16px rgba(255, 250, 237, 0.7);
}

.avatar-preview-subtitle,
.avatar-preview-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 248, 237, 0.86);
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.avatar-preview-about {
  width: 100%;
  padding: 16px 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 28px rgba(24, 51, 70, 0.1);
  line-height: 1.5;
  text-align: center;
}

.avatar-preview-form {
  width: min(92vw, 620px);
}

.avatar-preview-actions {
  padding-bottom: max(10px, env(safe-area-inset-bottom));
}

.guest-thread {
  display: grid;
  gap: 10px;
  overflow-anchor: none;
}

.guest-thread-loader {
  padding: 18px 20px;
  border-radius: 22px;
}

.guest-thread-loader strong {
  display: block;
  font-size: 1.12rem;
  line-height: 1.25;
  margin-bottom: 8px;
}

.guest-thread-bubble {
  display: grid;
  gap: 8px;
  width: 92%;
  padding: 12px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 20px rgba(24, 51, 70, 0.08);
}

.guest-thread-bubble.is-incoming {
  justify-self: start;
}

.guest-thread-bubble.is-outgoing {
  justify-self: end;
  background: rgba(255, 241, 229, 0.92);
  border-color: rgba(255, 204, 170, 0.78);
}

.guest-thread-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.86rem;
}

.guest-thread-text {
  line-height: 1.46;
  white-space: pre-wrap;
}

.guest-thread-quote {
  display: grid;
  gap: 3px;
  margin-bottom: 10px;
  padding: 9px 11px;
  border-radius: 14px;
  background: rgba(255, 248, 237, 0.84);
  border-left: 3px solid rgba(255, 157, 87, 0.72);
}

.guest-thread-quote strong {
  font-size: 13px;
}

.guest-thread-quote span {
  font-size: 14px;
  line-height: 1.38;
  color: rgba(54, 43, 30, 0.88);
}

.guest-thread-quote.is-compose-quote {
  margin-bottom: 8px;
}

.guest-thread-quote-cancel {
  justify-self: start;
  margin-top: 2px;
}

.meadow-overlay {
  position: absolute;
  left: 14px;
  right: 14px;
  z-index: 8;
  pointer-events: none;
}

.meadow-overlay > * {
  pointer-events: auto;
}

.meadow-overlay-top {
  top: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.meadow-overlay-bottom {
  left: 10px;
  right: 10px;
  bottom: 18px;
  min-height: 124px;
  z-index: 18;
}

.meadow-title-box {
  max-width: 52%;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 248, 237, 0.86);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 20px rgba(24, 51, 70, 0.12);
}

.meadow-title-box h3 {
  font-size: 20px;
}

.meadow.is-gardens-active .meadow-title-box,
.meadow.is-gardens-active .meadow-luga-btn,
.meadow.is-gardens-active .meadow-icon-btn {
  display: none;
}

.meadow-status {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.meadow-controls-row {
  display: none;
}

.meadow::after {
  content: none;
}

.meadow::before {
  content: none;
}

.avatar,
.location,
.meadow-trace {
  position: absolute;
  transform: translate(-50%, -50%);
  text-align: center;
}

.avatar {
  width: 66px;
  transition: transform 220ms ease;
  cursor: pointer;
  z-index: 5;
}

.location {
  z-index: 2;
}

.avatar-inbox-badge {
  position: absolute;
  top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 248, 237, 0.98), rgba(255, 220, 180, 0.95));
  box-shadow: 0 8px 16px rgba(78, 42, 16, 0.22);
  color: #7a3a11;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.avatar-inbox-badge.is-right-side {
  left: calc(100% - 2px);
}

.avatar-inbox-badge.is-left-side {
  right: calc(100% - 2px);
}

.avatar-inbox-badge span {
  min-width: 14px;
}

.avatar.me {
  z-index: 4;
}

.avatar.me .avatar-face {
  background: linear-gradient(180deg, #ffcf84, #ff8f63);
  box-shadow: 0 12px 22px rgba(236, 109, 50, 0.28);
}

.avatar.me .avatar-face.avatar-face-photo {
  width: 46px;
  height: 64px;
  border-radius: 0;
  border: 0;
  background: url("/assets/avatar-main.png") center / contain no-repeat;
  box-shadow: none;
  margin: 0 auto 2px;
}

.avatar.is-near {
  transform: translate(-50%, -50%) scale(1.06);
}

.avatar.location-near .avatar-name,
.location.location-near .avatar-name {
  background: #fff2bf;
}

.location.location-near {
  filter: drop-shadow(0 0 18px rgba(255, 243, 180, 0.95));
}

.avatar.online-user .avatar-face {
  background: linear-gradient(180deg, #ffe1b8, #ffb475);
}

.avatar.online-user .avatar-face.avatar-face-photo,
.avatar.resting .avatar-face.avatar-face-photo {
  width: 46px;
  height: 64px;
  border-radius: 0;
  border: 0;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  box-shadow: none;
}

.avatar-face {
  display: block;
  width: 54px;
  height: 54px;
  margin: 0 auto 4px;
  border-radius: 50%;
  border: 3px solid rgba(0, 0, 0, 0.08);
}

.avatar-face {
  background: linear-gradient(180deg, #ffd39e, #ffb067);
}

.avatar-face.avatar-face-photo,
.room-avatar-marker-face {
  transform: scaleX(var(--avatar-flip, 1));
  transform-origin: center;
}

.avatar.resting .avatar-face {
  background: linear-gradient(180deg, #d7c6ff, #ad97e8);
}

.avatar.is-incognito .avatar-face.avatar-face-photo,
.meeting-avatar.is-incognito {
  filter: brightness(0) saturate(0) contrast(1.22);
}

.avatar-name {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  font-weight: 700;
}

.meadow-trace {
  z-index: 3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.96) 0 32%, rgba(255, 238, 160, 0.54) 52%, rgba(255, 210, 86, 0) 76%);
  color: var(--ink);
  font: inherit;
  font-size: 20px;
  filter: drop-shadow(0 0 12px rgba(255, 234, 132, 0.96));
  cursor: pointer;
  animation: tracePulse 2.4s ease-in-out infinite;
}

.meadow-trace span {
  transform: translateY(-1px);
}

.meadow-field-gate {
  position: absolute;
  z-index: 8;
  display: grid;
  place-items: center;
  gap: 0;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: #663a12;
  background:
    radial-gradient(circle at 40% 35%, rgba(255, 250, 213, 0.96), rgba(255, 173, 71, 0.92) 58%, rgba(209, 97, 33, 0.86));
  box-shadow:
    0 0 14px rgba(255, 211, 94, 0.86),
    0 8px 16px rgba(74, 45, 14, 0.2);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  animation: fieldGateGlow 2.8s ease-in-out infinite;
}

.meadow-field-gate span {
  font-size: 20px;
  line-height: 0.9;
}

.meadow-field-gate small {
  font-size: 7px;
  line-height: 1;
  font-weight: 800;
}

.meadow-field-gate-next {
  right: 30px;
  bottom: 206px;
}

.meadow-field-gate-back {
  left: 18px;
  top: 132px;
  width: 48px;
  height: 48px;
  box-shadow:
    0 0 17px rgba(255, 211, 94, 0.9),
    0 10px 18px rgba(74, 45, 14, 0.22);
}

.meadow-field-gate-back span {
  font-size: 26px;
  font-weight: 1000;
}

.meadow-field-gate-back small {
  max-width: 42px;
  font-size: 8px;
  line-height: 0.95;
}

.meadow-future-zone {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 18px;
  background: rgba(255, 248, 230, 0.8);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 22px rgba(39, 65, 37, 0.14);
  backdrop-filter: blur(6px);
  font-size: 12px;
}

.meadow-future-zone-btn {
  border: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.meadow-future-zone span {
  color: var(--muted);
  font-size: 10px;
}

.meadow-future-garden {
  left: 13%;
  top: 64%;
}

.meadow-future-birds {
  left: 66%;
  top: 24%;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.meadow-future-birds:hover,
.meadow-future-birds:active {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 28px rgba(39, 65, 37, 0.2);
}

.meadow-future-herbs {
  left: 62%;
  top: 72%;
}

@keyframes fieldGateGlow {
  0%,
  100% {
    transform: scale(0.96);
    filter: saturate(1);
  }
  50% {
    transform: scale(1.05);
    filter: saturate(1.16);
  }
}

.meadow-trace-butterfly {
  filter: drop-shadow(0 0 12px rgba(172, 220, 255, 0.95));
}

.meadow-trace-flower {
  filter: drop-shadow(0 0 12px rgba(255, 176, 205, 0.95));
}

@keyframes tracePulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.96);
    opacity: 0.9;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.08);
    opacity: 1;
  }
}

.location {
  width: 138px;
  transition: transform 220ms ease;
}

.location.location-events {
  width: 152px;
  height: 122px;
  overflow: hidden;
}

.location.location-barter {
  width: 174px;
}

.location.location-mayak {
  width: 154px;
}

.location.location-rest {
  width: 172px;
}

.location-art {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 20px rgba(53, 77, 24, 0.24));
}

.location.location-events .location-art {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center top;
}

.approach-hint {
  position: absolute;
  display: none;
  left: 120px;
  right: 0;
  bottom: 70px;
  min-height: 0;
  padding: 10px 12px;
  border-radius: 20px;
  background: rgba(255, 248, 237, 0.74);
  backdrop-filter: blur(8px);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.75);
  font-size: 13px;
  box-shadow: 0 10px 18px rgba(24, 51, 70, 0.12);
}

.interaction-panel {
  margin-top: 14px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.75);
  min-height: 0;
}

.interaction-panel.is-empty {
  display: none;
}

.interaction-panel:not(.is-empty) {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 38;
  max-height: min(74dvh, 620px);
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable both-edges;
  margin-top: 0;
  background: rgba(255, 248, 237, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 42px rgba(24, 51, 70, 0.18);
}

.interaction-panel.is-tropa-travnika:not(.is-empty) {
  display: contents;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.interaction-panel.is-gardens:not(.is-empty) {
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  max-height: none;
  padding: 0;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.interaction-panel-body {
  display: grid;
  gap: 10px;
  padding-top: 4px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}

.interaction-panel.is-tropa-travnika .interaction-panel-body {
  display: block;
  height: 100%;
  min-height: 0;
  position: relative;
  padding: 0;
  overflow: hidden;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.meadow.is-tropa-active .meadow-title-box,
.meadow.is-tropa-active .meadow-overlay-title,
.meadow.is-tropa-active .meadow-luga-btn,
.meadow.is-tropa-active .meadow-icon-btn {
  display: none;
}

.interaction-panel.is-gardens .interaction-panel-body {
  display: block;
  height: 100%;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.interaction-panel.is-gardens .interaction-close {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  right: 12px;
  z-index: 24;
  float: none;
  margin: 0;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(24, 51, 70, 0.16);
}

.meadow.has-panel .approach-hint,
.meadow.has-panel .proximity-bar,
.meadow.has-panel .meadow-joystick,
.meadow.has-panel .ambient-sound-toggle {
  display: none;
}

.ambient-sound-toggle {
  position: absolute;
  right: 14px;
  bottom: 24px;
  z-index: 39;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--ink);
  font-size: 18px;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 24px rgba(24, 51, 70, 0.14);
}

.ambient-sound-toggle.is-muted {
  background: rgba(255, 244, 233, 0.72);
  opacity: 0.92;
}

.meadow-guest-calls {
  min-width: 172px;
  padding: 8px 12px;
  text-align: left;
  box-shadow: 0 10px 22px rgba(24, 51, 70, 0.14);
}

.meadow-guest-calls strong,
.meadow-guest-calls span {
  display: block;
}

.meadow-guest-calls span {
  margin-top: 3px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(64, 54, 38, 0.86);
}

.mail-accent {
  color: #ff8b5d;
}

.birdsong-panel {
  display: grid;
}

.tropa-panel {
  position: fixed;
  inset: 0;
  z-index: 38;
  display: grid;
  gap: 0;
  width: 100vw;
  min-height: 100%;
  height: 100dvh;
  pointer-events: none;
}

.tropa-panel > * {
  pointer-events: auto;
}

.tropa-panel-content {
  display: block;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  position: relative;
  z-index: 1;
  min-height: 100%;
}

.tropa-floating-help {
  position: absolute;
  top: calc(max(12px, calc(env(safe-area-inset-top) + 4px)) + 52px);
  right: 12px;
  z-index: 24;
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 999px;
  font-size: 20px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(24, 51, 70, 0.16);
}

.tropa-panel-close {
  position: absolute;
  top: max(12px, calc(env(safe-area-inset-top) + 4px));
  right: 12px;
  z-index: 24;
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 999px;
  font-size: 28px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(24, 51, 70, 0.16);
}

.tropa-panel.is-image-expanded .tropa-panel-content {
  visibility: hidden;
  pointer-events: none;
}

.tropa-section {
  display: grid;
  gap: 12px;
  min-height: 0;
}

.tropa-section--screen {
  min-height: 100%;
  padding: max(28px, calc(env(safe-area-inset-top) + 20px)) 0 max(2px, env(safe-area-inset-bottom));
  align-content: stretch;
  overflow: visible;
}

.tropa-screen-shell {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  min-height: calc(100dvh - max(12px, calc(env(safe-area-inset-top) + 4px)) - max(2px, env(safe-area-inset-bottom)));
}

.tropa-card,
.tropa-rank-card {
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 255, 239, 0.92)),
    radial-gradient(circle at top right, rgba(140, 206, 123, 0.18), transparent 38%);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.tropa-card--screen,
.tropa-rank-card--screen {
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 18px 38px rgba(24, 51, 70, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  min-height: 100%;
  align-content: start;
  border-radius: 24px;
  padding-top: 34px;
  padding-right: 78px;
  padding-bottom: 22px;
  padding-left: 28px;
}

.tropa-card--screen,
.tropa-rank-card {
  width: 100%;
  margin: 0 auto;
}

.tropa-card-game {
  min-height: inherit;
  align-content: start;
  grid-template-rows: auto auto auto 1fr auto;
  width: 100%;
  margin: 0 auto;
  padding-top: 34px;
  padding-right: 78px;
  padding-bottom: 22px;
  padding-left: 28px;
}

.tropa-headline {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 22px;
}

.tropa-kicker {
  font-size: 12px;
  font-weight: 800;
  color: #638a2f;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tropa-title {
  font-size: clamp(24px, 4.8vw, 32px);
  line-height: 1.08;
  margin-top: 12px;
}

.tropa-title--intro {
  margin-top: 48px;
}

.tropa-help-copy {
  font-size: 18px;
  line-height: 1.45;
}

.tropa-preview {
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 24px rgba(24, 51, 70, 0.08);
  display: grid;
  place-items: center;
  min-height: 180px;
}

.tropa-hero {
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 24px rgba(24, 51, 70, 0.08);
  border: 0;
  padding: 0;
  text-align: inherit;
  font: inherit;
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 10px;
  place-items: center;
  min-height: min(74dvh, 980px);
}

.tropa-hero-image,
.tropa-preview-image {
  display: block;
  width: 100%;
  max-height: none;
  object-fit: cover;
}

.tropa-hero-image {
  max-height: none;
}

.tropa-hero--question {
  min-height: min(76dvh, 1040px);
}

.tropa-hero--question .tropa-hero-image {
  width: 100%;
  min-height: min(76dvh, 1040px);
  max-height: min(80dvh, 1120px);
  object-fit: cover;
  object-position: top center;
}

.tropa-hero--answer {
  min-height: min(70dvh, 940px);
}

.tropa-hero--answer .tropa-hero-image {
  min-height: min(70dvh, 940px);
  max-height: min(76dvh, 1040px);
  object-fit: cover;
  object-position: top center;
}

.tropa-hero-hint {
  margin: 0 12px 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.tropa-image-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: rgba(15, 25, 24, 0.96);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.tropa-image-overlay-image {
  display: block;
  width: 100vw;
  height: 100dvh;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  background: transparent;
}

.tropa-image-overlay-hint {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.tropa-summary,
.tropa-rank-meter {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 252, 234, 0.94));
  box-shadow: 0 8px 18px rgba(24, 51, 70, 0.07);
}

.tropa-screen-actions {
  width: min(100%, 760px);
  margin: 12px auto 0;
}

.tropa-summary strong,
.tropa-rank-meter strong {
  display: block;
  font-size: 16px;
}

.tropa-summary span,
.tropa-rank-meter span {
  color: var(--muted);
  font-size: 13px;
}

.tropa-primary-actions {
  padding: 0;
  margin-top: -2px;
}

.tropa-atlas-list {
  display: grid;
  gap: 10px;
}

.tropa-atlas-item {
  border: 0;
  border-radius: 18px;
  padding: 16px 16px 14px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.985), rgba(239, 250, 228, 0.95));
  color: var(--ink);
  text-align: left;
  font: inherit;
  box-shadow: 0 10px 20px rgba(24, 51, 70, 0.09);
  display: grid;
  gap: 4px;
}

.tropa-atlas-item strong {
  display: block;
  margin-bottom: 4px;
}

.tropa-atlas-item span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.tropa-atlas-item em {
  display: block;
  margin-top: 2px;
  color: #638a2f;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.tropa-atlas-summary {
  margin-top: -2px;
}

.tropa-card .interaction-actions.meeting-actions {
  margin-bottom: 2px;
}

.tropa-fact-box {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 18px rgba(24, 51, 70, 0.06);
}

.tropa-answer-box {
  padding: 0;
  background: transparent;
}

.tropa-fact-box label {
  font-size: 12px;
  font-weight: 800;
  color: #5f7f2d;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tropa-answer-field {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(174, 144, 74, 0.28);
  background: rgba(255, 255, 255, 0.94);
  font: inherit;
  color: var(--ink);
}

.tropa-answer-field--single {
  min-height: 52px;
  height: 52px;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.2;
}

.tropa-card-game .interaction-actions.meeting-actions {
  position: sticky;
  bottom: 0;
  z-index: 3;
  padding-top: 10px;
  background: linear-gradient(180deg, rgba(247, 255, 244, 0), rgba(247, 255, 244, 0.96) 26%, rgba(247, 255, 244, 0.98));
}

.tropa-clues {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.tropa-clues span {
  display: block;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  line-height: 1.45;
}

.tropa-choice-grid {
  margin-top: 4px;
}

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

.tropa-choice-card.is-active {
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(230, 248, 211, 0.9));
  box-shadow: 0 10px 18px rgba(24, 51, 70, 0.14);
}

.tropa-mode-card.is-active {
  background:
    linear-gradient(155deg, rgba(244, 255, 232, 0.98), rgba(200, 242, 168, 0.94));
  border: 1px solid rgba(121, 179, 62, 0.45);
  box-shadow: 0 14px 24px rgba(78, 128, 34, 0.18);
}

.tropa-type-card.is-active {
  background:
    linear-gradient(155deg, rgba(255, 250, 233, 0.98), rgba(255, 225, 171, 0.9));
  border: 1px solid rgba(221, 155, 54, 0.42);
}

.tropa-fact-line {
  display: grid;
  gap: 4px;
  padding: 10px 11px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  line-height: 1.45;
}

.tropa-fact-line strong {
  color: #5f7f2d;
}

.tropa-status-copy {
  margin-bottom: 2px;
}

.tropa-card-game .interaction-actions {
  margin-top: auto;
  padding-top: 8px;
}

.gardens-scene {
  position: relative;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  border-radius: 0;
  background: #dcebc9;
}

.gardens-scene-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.gardens-scene-overlay {
  position: absolute;
  left: 0;
  right: 0;
  top: max(8px, env(safe-area-inset-top));
  z-index: 8;
  display: grid;
  gap: 12px;
  align-content: start;
  max-height: calc(100% - max(16px, env(safe-area-inset-top)) - max(18px, env(safe-area-inset-bottom)));
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  padding: 0 12px max(14px, env(safe-area-inset-bottom));
}

.gardens-scene-overlay.is-bottom {
  top: auto;
  bottom: max(12px, env(safe-area-inset-bottom));
  align-content: end;
}

.gardens-panel {
  display: grid;
  gap: 12px;
  min-height: 0;
  width: min(100%, 620px);
  margin-left: auto;
  margin-right: auto;
}

.gardens-panel--home {
  min-height: calc(100dvh - max(16px, env(safe-area-inset-top)) - max(24px, env(safe-area-inset-bottom)));
}

.gardens-panel--catalog,
.gardens-panel--detail {
  min-height: calc(100dvh - max(24px, env(safe-area-inset-top)) - max(24px, env(safe-area-inset-bottom)));
  align-content: start;
  padding: 14px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(246, 255, 241, 0.97)),
    radial-gradient(circle at top center, rgba(255, 225, 154, 0.18), transparent 36%);
  box-shadow: 0 20px 40px rgba(24, 51, 70, 0.14);
  backdrop-filter: blur(10px);
}

.gardens-card,
.gardens-tree-detail {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 255, 239, 0.92)),
    radial-gradient(circle at top right, rgba(255, 213, 109, 0.18), transparent 40%);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 14px 28px rgba(24, 51, 70, 0.12);
  backdrop-filter: blur(10px);
}

.gardens-card--compact {
  gap: 10px;
}

.gardens-kicker {
  font-size: 12px;
  font-weight: 800;
  color: #638a2f;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gardens-inline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gardens-inline-header.is-topline {
  align-items: flex-start;
  padding-top: 2px;
}

.gardens-inline-header-copy {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.gardens-help-btn {
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 999px;
  font-size: 20px;
  font-weight: 800;
}

.gardens-help-btn--inline {
  width: 36px;
  min-width: 36px;
  height: 36px;
  font-size: 18px;
}

.gardens-floating-top,
.gardens-floating-bottom {
  display: grid;
  gap: 10px;
}

.gardens-floating-top {
  position: relative;
  min-height: 118px;
}

.gardens-floating-bottom {
  margin-top: auto;
}

.gardens-status--floating {
  position: absolute;
  left: 0;
  top: 58px;
  width: fit-content;
  max-width: min(calc(100vw - 84px), 340px);
  margin-top: 0;
  padding: 6px 10px;
  min-height: 0;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  align-self: start;
}

.gardens-card--help {
  width: min(100%, 560px);
  margin-left: auto;
  margin-right: auto;
}

.gardens-help-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.gardens-help-close {
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 999px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

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

.gardens-status {
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(244, 255, 228, 0.95);
  color: #557625;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  box-shadow: 0 8px 18px rgba(24, 51, 70, 0.08);
}

.gardens-summary-card {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 16px rgba(24, 51, 70, 0.08);
}

.gardens-summary-card strong {
  font-size: 18px;
}

.gardens-summary-card span {
  color: var(--muted);
  font-size: 13px;
}

.gardens-scope-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: min(100%, 460px);
  margin-left: auto;
  margin-right: auto;
}

.gardens-scope-toggle {
  min-height: 52px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(242, 250, 233, 0.9)),
    radial-gradient(circle at top right, rgba(255, 217, 132, 0.12), transparent 42%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 12px 22px rgba(24, 51, 70, 0.1);
  color: #31461c;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.gardens-scope-toggle.is-active {
  background:
    linear-gradient(180deg, rgba(236, 255, 211, 0.98), rgba(207, 243, 173, 0.96)),
    radial-gradient(circle at top right, rgba(255, 223, 129, 0.16), transparent 42%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 14px 26px rgba(74, 126, 51, 0.16);
  color: #284814;
}

.gardens-main-cta {
  width: min(100%, 460px);
  margin-left: auto;
  margin-right: auto;
}

.gardens-help-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gardens-help-list li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.gardens-field-frame {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  min-height: min(66dvh, 720px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.54), 0 16px 28px rgba(24, 51, 70, 0.12);
}

.gardens-field-scene {
  display: block;
  width: 100%;
  height: 100%;
  min-height: min(66dvh, 720px);
  object-fit: cover;
  object-position: center;
}

.gardens-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}

.gardens-field::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 245, 220, 0.08), rgba(255, 255, 255, 0.03) 34%, rgba(74, 126, 51, 0.06));
  pointer-events: none;
}

.gardens-field-empty {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: max(184px, calc(env(safe-area-inset-bottom) + 164px));
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  border-radius: 22px;
  border: 1px dashed rgba(255, 255, 255, 0.54);
  background: rgba(255, 255, 255, 0.16);
  text-align: center;
  color: #fff;
  text-shadow:
    -1px -1px 0 rgba(0, 0, 0, 0.85),
    1px -1px 0 rgba(0, 0, 0, 0.85),
    -1px 1px 0 rgba(0, 0, 0, 0.85),
    1px 1px 0 rgba(0, 0, 0, 0.85),
    0 2px 6px rgba(0, 0, 0, 0.35);
}

.gardens-field-empty span {
  max-width: 240px;
  font-size: 14px;
  color: #fff;
}

.gardens-tree-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  min-width: 78px;
  max-width: 110px;
  border: 0;
  border-radius: 18px;
  padding: 8px 10px;
  display: grid;
  gap: 3px;
  justify-items: center;
  text-align: center;
  color: #214114;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 24px rgba(32, 79, 18, 0.18);
}

.gardens-tree-pin-emoji {
  font-size: 24px;
  line-height: 1;
}

.gardens-tree-pin-title {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
}

.gardens-tree-pin small {
  display: block;
  font-size: 11px;
  color: rgba(33, 65, 20, 0.76);
}

.gardens-tree-pin.is-active {
  box-shadow: 0 12px 26px rgba(32, 79, 18, 0.24), 0 0 0 2px rgba(255, 255, 255, 0.9);
}

.gardens-tree-spot {
  position: absolute;
  transform: translate(-50%, -100%);
  width: clamp(84px, 16vw, 150px);
  border: 0;
  padding: 0;
  background: transparent;
  display: grid;
  justify-items: center;
  gap: 0;
  z-index: 3;
}

.gardens-tree-spot.is-static {
  pointer-events: none;
}

.gardens-tree-spot.is-active {
  z-index: 4;
}

.gardens-tree-spot-image {
  display: block;
  width: 100%;
  max-height: 190px;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(30, 79, 26, 0.22));
  pointer-events: none;
}

.gardens-tree-spot-label {
  display: none;
}

.gardens-tree-spot-label strong {
  font-size: 13px;
  line-height: 1.1;
}

.gardens-tree-spot-label small {
  font-size: 11px;
  line-height: 1.15;
  color: rgba(33, 65, 20, 0.78);
}

.gardens-slot-hit {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 88px;
  height: 88px;
  border: 0;
  padding: 0;
  background: transparent;
  z-index: 5;
}

.gardens-slot-hit::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 999px;
  border: 2px dashed rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
}

.gardens-slot-hit.is-free::before {
  border-style: solid;
  border-color: rgba(255, 214, 118, 0.96);
  box-shadow: 0 0 0 4px rgba(255, 245, 214, 0.24);
}

.gardens-slot-hit.is-selected::before {
  border-style: solid;
  border-color: rgba(255, 214, 118, 0.96);
  box-shadow: 0 0 0 4px rgba(255, 245, 214, 0.24);
}

.gardens-slot-pointer {
  display: none;
}

.gardens-field-caption {
  position: absolute;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  min-width: 220px;
  max-width: calc(100% - 32px);
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(255, 248, 237, 0.82);
  color: #415922;
  font-size: 13px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(24, 51, 70, 0.14);
  backdrop-filter: blur(10px);
}

.gardens-field-caption.is-planting {
  bottom: auto;
  top: max(18px, env(safe-area-inset-top));
}

.gardens-field-caption strong {
  display: block;
  margin-bottom: 2px;
  font-size: 14px;
}

.gardens-tree-tone-sprout {
  background: linear-gradient(180deg, rgba(252, 255, 244, 0.96), rgba(223, 248, 208, 0.92));
}

.gardens-tree-tone-sapling {
  background: linear-gradient(180deg, rgba(249, 255, 242, 0.96), rgba(206, 243, 194, 0.94));
}

.gardens-tree-tone-young {
  background: linear-gradient(180deg, rgba(248, 255, 238, 0.96), rgba(193, 236, 171, 0.94));
}

.gardens-tree-tone-mature {
  background: linear-gradient(180deg, rgba(251, 255, 237, 0.96), rgba(179, 227, 149, 0.96));
}

.gardens-tree-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.gardens-tree-illustration {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 180px;
  padding: 16px 14px 8px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top center, rgba(255, 243, 197, 0.88), transparent 52%),
    linear-gradient(180deg, rgba(245, 255, 239, 0.94), rgba(226, 243, 214, 0.92));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.76);
}

.gardens-tree-illustration img {
  display: block;
  width: min(100%, 240px);
  max-height: 180px;
  object-fit: contain;
  image-rendering: auto;
}

.gardens-tree-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gardens-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(244, 255, 228, 0.95);
  color: #48691f;
  font-size: 12px;
  font-weight: 800;
}

.gardens-tree-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  color: var(--muted);
  font-size: 13px;
}

.gardens-facts {
  display: grid;
  gap: 8px;
}

.gardens-fact-line {
  display: grid;
  gap: 4px;
  padding: 10px 11px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  line-height: 1.45;
}

.gardens-fact-line strong {
  color: #5f7f2d;
}

.gardens-note-form,
.gardens-note-readonly {
  display: grid;
  gap: 8px;
}

.gardens-note-label,
.gardens-note-readonly strong {
  font-size: 13px;
  font-weight: 800;
}

.gardens-note-readonly span {
  display: block;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  line-height: 1.45;
}

.gardens-note-field {
  min-height: 94px;
}

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

.gardens-catalog-tile {
  border: 0;
  border-radius: 22px;
  padding: 12px 10px;
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(248, 255, 241, 0.98), rgba(227, 245, 211, 0.94)),
    radial-gradient(circle at top center, rgba(255, 235, 170, 0.36), transparent 42%);
  color: #274b1a;
  box-shadow: 0 14px 24px rgba(30, 79, 26, 0.12);
}

.gardens-catalog-tile img {
  display: block;
  width: min(100%, 142px);
  height: 126px;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(30, 79, 26, 0.14));
}

.gardens-catalog-tile strong {
  font-size: 15px;
  line-height: 1.15;
}

.gardens-catalog-tile span {
  font-size: 12px;
  color: rgba(39, 75, 26, 0.76);
}

.gardens-catalog-preview {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 126px;
  padding: 14px 10px 4px;
  border-radius: 20px;
  background:
    radial-gradient(circle at top center, rgba(255, 243, 197, 0.84), transparent 52%),
    linear-gradient(180deg, rgba(245, 255, 239, 0.94), rgba(229, 245, 220, 0.92));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.74);
}

.gardens-catalog-preview img {
  display: block;
  width: min(100%, 170px);
  max-height: 120px;
  object-fit: contain;
}

.gardens-catalog-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}

.gardens-catalog-head span {
  color: var(--muted);
  font-size: 13px;
}

.gardens-card-detail {
  gap: 14px;
}

.gardens-catalog-preview.is-large {
  min-height: 250px;
  padding: 18px 10px 10px;
}

.gardens-catalog-preview.is-large img {
  width: min(100%, 300px);
  max-height: 232px;
}

.gardens-stage-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.gardens-stage-thumb {
  padding: 8px 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  display: flex;
  justify-content: center;
  align-items: center;
}

.gardens-stage-thumb img {
  display: block;
  width: 100%;
  max-width: 70px;
  max-height: 66px;
  object-fit: contain;
}

.gardens-planting-copy {
  display: none;
}

.gardens-planting-secondary {
  display: flex;
  justify-content: center;
}

.gardens-floating-copy {
  justify-self: center;
  width: min(100%, 520px);
  padding: 16px 18px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 255, 236, 0.9)),
    radial-gradient(circle at top right, rgba(255, 223, 143, 0.22), transparent 40%);
  box-shadow: 0 18px 36px rgba(24, 51, 70, 0.18);
}

.gardens-floating-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: auto;
}

@media (max-width: 560px) {
  .gardens-stage-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gardens-tree-spot {
    width: clamp(82px, 24vw, 122px);
  }

  .gardens-tree-spot-image {
    max-height: 152px;
  }

  .gardens-panel,
  .gardens-tree-detail {
    width: 100%;
  }

  .tropa-section--screen {
    padding-left: 8px;
    padding-right: 8px;
  }

  .gardens-floating-copy {
    width: 100%;
  }
}

.birdsong-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 247, 233, 0.96)),
    radial-gradient(circle at top right, rgba(255, 219, 130, 0.25), transparent 42%);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.birdsong-title {
  font-size: clamp(26px, 4.8vw, 34px);
  line-height: 1.08;
}

.birdsong-kicker {
  font-size: 12px;
  font-weight: 800;
  color: #9b6a10;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.birdsong-note {
  padding: 9px 11px;
  border-radius: 16px;
  background: rgba(255, 244, 214, 0.82);
  color: #795514;
  font-size: 13px;
}

.birdsong-form {
  gap: 10px;
}

.birdsong-answer-field {
  min-height: 98px;
}

.birdsong-photo-wrap {
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 24px rgba(24, 51, 70, 0.08);
  display: grid;
  place-items: center;
  min-height: 180px;
}

.birdsong-photo {
  display: block;
  width: 100%;
  max-height: 28dvh;
  object-fit: contain;
}

.interaction-close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-left: auto;
  margin-bottom: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font: inherit;
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 8px 16px rgba(24, 51, 70, 0.12);
}

.proximity-bar {
  position: absolute;
  left: 120px;
  right: auto;
  bottom: 0;
  display: grid;
  gap: 6px;
  width: fit-content;
  max-width: min(72vw, 360px);
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 248, 237, 0.74);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 10px 18px rgba(24, 51, 70, 0.12);
}

.proximity-text {
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
}

.meadow-joystick {
  position: absolute;
  left: 2px;
  bottom: -2px;
  width: 110px;
  height: 110px;
  z-index: 20;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
}

.joystick-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 241, 191, 0.42), rgba(239, 140, 44, 0.18) 55%, rgba(94, 49, 19, 0.16) 72%, rgba(94, 49, 19, 0) 76%),
    url("/assets/nav-orb.png");
  background-position: center;
  background-size: cover;
  opacity: 0.46;
  filter: saturate(0.88);
}

.joystick-thumb {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: url("/assets/nav-orb.png") center / cover no-repeat;
  box-shadow:
    0 8px 18px rgba(106, 42, 7, 0.28),
    inset 0 2px 0 rgba(255, 244, 206, 0.68);
  transform: translate(-50%, -50%);
  will-change: transform;
}

.room-view {
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 248, 236, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 40px rgba(24, 51, 70, 0.12);
}

.room-hidden {
  display: none;
}

.room-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.room-content {
  display: grid;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.room-view.room-cocreation {
  margin-top: 0;
  padding: 0;
  min-height: 100dvh;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.room-view.room-cocreation .room-head {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 40;
  margin: 0;
}

.room-view.room-cocreation .room-head > div {
  display: none;
}

.room-view.room-my-home,
.room-view.room-user {
  margin-top: 0;
  padding: 0;
  min-height: 100dvh;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.room-view.room-my-home .room-head,
.room-view.room-user .room-head {
  display: none;
}

.room-view.room-rest {
  margin-top: 0;
  padding: 0;
  min-height: 100dvh;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.room-view.room-mayak {
  margin-top: 0;
  padding: 0;
  min-height: 100dvh;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.room-view.room-showcase {
  margin-top: 0;
  padding: 0;
  min-height: 100dvh;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.room-view.room-events {
  margin-top: 0;
  padding: 0;
  min-height: 100dvh;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.room-view.room-flow {
  margin-top: 0;
  padding: 0;
  min-height: 100dvh;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.room-view.room-barter {
  margin-top: 0;
  padding: 0;
  min-height: 100dvh;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.room-view.room-rest .room-head {
  display: none;
}

.room-view.room-mayak .room-head {
  display: none;
}

.room-view.room-showcase .room-head {
  display: none;
}

.room-view.room-events .room-head {
  display: none;
}

.room-view.room-barter .room-head {
  display: none;
}

.room-view.room-flow .room-head {
  display: none;
}

.room-object-layer {
  position: relative;
  min-height: 180px;
  margin-bottom: 14px;
}

.room-object {
  position: absolute;
  border: 0;
  border-radius: 18px;
  padding: 12px 14px;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-align: left;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 12px 22px rgba(24, 51, 70, 0.12);
}

.room-object small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 400;
}

.room-object.is-active {
  background: #fff2b5;
}

.room-object.object-shelf {
  width: 170px;
  height: 86px;
}

.room-object.object-table {
  width: 170px;
  height: 76px;
}

.room-object.object-board {
  width: 180px;
  height: 94px;
}

.room-object.object-stage {
  width: 190px;
  height: 92px;
}

.room-object.object-window {
  width: 150px;
  height: 78px;
}

.room-hotspots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.room-hotspot {
  border: 0;
  border-radius: 18px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-align: left;
  min-width: 140px;
  box-shadow: 0 10px 18px rgba(24, 51, 70, 0.08);
}

.room-hotspot.is-active {
  background: #fff1b8;
}

.room-detail {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.room-entry-list {
  display: grid;
  gap: 8px;
}

.room-entry {
  border: 0;
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  text-align: left;
  font: inherit;
  box-shadow: 0 8px 16px rgba(24, 51, 70, 0.08);
}

.room-entry strong {
  display: block;
  margin-bottom: 4px;
}

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

.room-form textarea {
  width: 100%;
  min-height: 88px;
  resize: vertical;
  border: 1px solid rgba(36, 51, 65, 0.12);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font: inherit;
  font-family: "Georgia", "Times New Roman", serif;
  line-height: 1.55;
}

.room-status {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
}

.meeting-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 226, 156, 0.7), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(244, 252, 235, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 30px rgba(39, 65, 37, 0.13);
}

.meeting-card-head {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.meeting-avatar {
  width: 58px;
  height: 70px;
  border-radius: 20px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  background-color: rgba(255, 248, 231, 0.7);
  box-shadow: inset 0 0 0 1px rgba(92, 72, 39, 0.08);
}

.meeting-request,
.meeting-notice,
.meeting-mini-section {
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
}

.meeting-notice {
  background: rgba(255, 239, 188, 0.82);
  font-weight: 700;
}

.meeting-notice-button {
  width: 100%;
  border: 0;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.meeting-score {
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(237, 249, 226, 0.86);
  color: var(--ink);
}

.meeting-score span {
  color: var(--muted);
  font-size: 13px;
}

.meeting-actions {
  margin-top: 10px;
  position: sticky;
  bottom: 0;
  padding-top: 8px;
  background: linear-gradient(180deg, rgba(255, 248, 237, 0) 0%, rgba(255, 248, 237, 0.96) 24%);
}

.meeting-game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.meeting-game-card {
  border: 0;
  border-radius: 18px;
  padding: 12px;
  text-align: left;
  color: var(--ink);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.92), rgba(234, 249, 226, 0.78));
  box-shadow: 0 10px 18px rgba(24, 51, 70, 0.1);
  font: inherit;
}

.meeting-game-card strong,
.meeting-game-card span {
  display: block;
}

.meeting-game-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.meeting-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  min-height: 0;
}

.meeting-form-grid {
  display: grid;
  gap: 8px;
}

.meeting-form label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.meeting-form input,
.meeting-form select,
.meeting-form textarea {
  width: 100%;
  border: 1px solid rgba(36, 51, 65, 0.12);
  border-radius: 16px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font: inherit;
}

.meeting-form textarea {
  min-height: 76px;
  resize: vertical;
  font-family: "Georgia", "Times New Roman", serif;
  line-height: 1.55;
}

.meeting-form textarea.meeting-form-textarea-short {
  min-height: 42px;
}

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

.quiet-card-option {
  position: relative;
  display: block;
}

.quiet-card-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.quiet-card-option-face {
  display: grid;
  gap: 4px;
  min-height: 82px;
  padding: 12px 10px;
  border-radius: 16px;
  border: 1px solid rgba(36, 51, 65, 0.12);
  background: rgba(255, 255, 255, 0.9);
  text-align: center;
  justify-items: center;
}

.quiet-card-option-face strong {
  font-size: 24px;
  line-height: 1;
}

.quiet-card-option-face span {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.quiet-card-option input:checked + .quiet-card-option-face {
  border-color: rgba(255, 145, 112, 0.58);
  box-shadow: 0 10px 24px rgba(255, 145, 112, 0.18);
  background: rgba(255, 248, 240, 0.96);
}

.quiet-image-preview {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.quiet-inline-image-wrap {
  display: grid;
  gap: 8px;
}

.quiet-inline-image-button {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.quiet-inline-image {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.quiet-history-image {
  display: block;
  margin: 8px 0 4px;
}

.quiet-history-image img {
  display: block;
  width: 100%;
  max-height: 120px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
}

.quiet-history-image-button {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.quiet-image-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(10, 12, 14, 0.76);
  backdrop-filter: blur(6px);
}

.quiet-image-overlay-photo {
  max-width: 100%;
  max-height: 100%;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  object-fit: contain;
}

.quiet-game-line {
  font-family: "Georgia", "Times New Roman", serif;
  line-height: 1.5;
}

.mayak-oracle-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 246, 191, 0.92), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(232, 247, 255, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 28px rgba(40, 70, 92, 0.12);
}

.mayak-oracle-card h5 {
  margin: 0;
  font-size: 18px;
}

.mayak-kicker {
  color: #56748a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mayak-task-text {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.42;
  white-space: pre-wrap;
}

.mayak-note {
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  line-height: 1.38;
}

.mayak-reward {
  color: #7a5b24;
  font-weight: 800;
}

.showcase-gratitude-grid {
  align-items: start;
}

.showcase-gratitude-card {
  gap: 12px;
}

.showcase-gratitude-card .showcase-field {
  display: grid;
  gap: 6px;
}

.showcase-gratitude-card .showcase-field span {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.showcase-input,
.showcase-textarea {
  width: 100%;
  border: 1px solid rgba(138, 115, 72, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font: inherit;
  padding: 12px 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.showcase-textarea {
  resize: vertical;
  min-height: 96px;
}

.mayak-mirror-card {
  background:
    radial-gradient(circle at 82% 12%, rgba(213, 235, 255, 0.95), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(239, 231, 255, 0.72));
}

.mayak-notebook-list {
  display: grid;
  gap: 10px;
}

.mayak-note-entry {
  display: grid;
  gap: 5px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.mayak-note-entry span {
  color: var(--muted);
  font-size: 12px;
}

.mayak-notebook-entry div,
.mayak-note-form textarea,
.mayak-complete-form textarea {
  font-family: "Georgia", "Times New Roman", serif;
  line-height: 1.55;
}

.mayak-notebook-editor {
  width: 100%;
  min-height: 140px;
  resize: vertical;
  border: 1px solid rgba(36, 51, 65, 0.12);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font: inherit;
  font-family: "Georgia", "Times New Roman", serif;
  line-height: 1.55;
}

.mayak-note-form textarea::placeholder,
.mayak-complete-form textarea::placeholder {
  font-family: "Georgia", "Times New Roman", serif;
  font-style: italic;
}

.mayak-note-form {
  margin-top: 12px;
}

.mayak-note-form .pill {
  justify-self: start;
  padding: 10px 18px;
  font-size: 16px;
}

.mayak-status-summary {
  white-space: normal;
  line-height: 1.45;
}

.mayak-scroll-note {
  padding: 18px 18px 20px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(252, 243, 212, 0.98), rgba(244, 225, 183, 0.92)),
    repeating-linear-gradient(
      180deg,
      rgba(183, 132, 73, 0.08) 0 2px,
      transparent 2px 16px
    );
  border: 1px solid rgba(190, 145, 84, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 12px 24px rgba(105, 73, 37, 0.12);
  color: #5d4220;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 24px;
  font-style: italic;
  line-height: 1.45;
}

.mayak-notebook-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 2px 2px;
}

.mayak-notebook-page-indicator {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.mayak-library-tail {
  display: grid;
  gap: 10px;
}

.mayak-library-divider {
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(201, 171, 127, 0.82), transparent);
}

.mayak-library-stats {
  color: #7a5b24;
  font-weight: 800;
  text-align: right;
}

.my-home-grid-two,
.my-home-pref-grid,
.my-home-apply-grid {
  display: grid;
  gap: 10px;
}

.my-home-zone-badge {
  position: absolute;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff9d76, #ef6f46);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 10px 22px rgba(142, 62, 34, 0.28);
  transform: translate(-50%, -50%);
  z-index: 3;
  pointer-events: none;
}

.my-home-avatar-card {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
}

.my-home-avatar-preview {
  max-width: 280px;
  width: 100%;
}

.my-home-order-note {
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 252, 244, 0.8);
  color: #6e5b46;
  line-height: 1.45;
}

.my-home-custom-order-form {
  padding-bottom: 18px;
}

.my-home-custom-order-form textarea {
  min-height: 66px;
}

.my-home-pref-field {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 700;
}

.my-home-pref-field input {
  width: 100%;
  border: 1px solid rgba(36, 51, 65, 0.12);
  border-radius: 14px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}

.my-home-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.66);
}

.my-home-checkbox input {
  width: 18px;
  height: 18px;
}

.mayak-role-list {
  display: grid;
  gap: 10px;
}

.mayak-role-card {
  display: grid;
  gap: 6px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 18px;
  padding: 13px 14px;
  text-align: left;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 18px rgba(24, 51, 70, 0.08);
}

.mayak-role-card strong {
  font-size: 16px;
}

.mayak-role-card span {
  color: var(--muted);
  line-height: 1.35;
}

.mayak-role-card.is-selected {
  background: linear-gradient(145deg, rgba(255, 246, 212, 0.94), rgba(255, 255, 255, 0.92));
  border-color: rgba(245, 183, 70, 0.42);
}

.mail-entry {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.78);
}

.mail-entry-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mail-entry-head strong {
  font-size: 17px;
}

.mail-entry-head span {
  color: var(--muted);
  font-size: 0.88rem;
}

.mail-entry-body {
  line-height: 1.45;
}

.book-launcher-card {
  margin-bottom: 10px;
}

.book-viewer-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 6px;
  padding: max(8px, env(safe-area-inset-top, 8px)) 8px max(10px, env(safe-area-inset-bottom, 10px));
  background: rgba(20, 17, 12, 0.92);
  backdrop-filter: blur(8px);
}

.book-viewer-chrome {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 8px;
}

.book-viewer-chrome .ghost-btn {
  justify-self: start;
}

.book-viewer-chrome .pill {
  justify-self: end;
}

.book-viewer-meta {
  display: grid;
  gap: 3px;
  justify-items: center;
  color: #fff7e8;
  text-align: center;
}

.book-viewer-meta span {
  color: rgba(255, 247, 232, 0.76);
  font-size: 0.92rem;
}

.book-viewer-frame {
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: transparent;
  touch-action: pan-x pan-y pinch-zoom;
  cursor: zoom-in;
}

.book-viewer-image {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  min-height: min(82dvh, 100%);
  object-fit: contain;
  border-radius: 10px;
  background: #fffdf7;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.book-viewer-overlay.is-expanded .book-viewer-frame {
  align-items: stretch;
  cursor: zoom-out;
}

.book-viewer-overlay.is-expanded .book-viewer-image {
  width: 100%;
  max-width: none;
  min-height: 88dvh;
  object-fit: cover;
}

.book-viewer-zoom-hint {
  justify-self: center;
  color: rgba(255, 247, 232, 0.74);
  font-size: 12px;
}

.book-viewer-controls {
  display: grid;
  gap: 8px;
}

.book-viewer-row {
  display: grid;
  grid-template-columns: minmax(86px, 118px) auto 1fr;
  gap: 10px;
  align-items: center;
}

.book-viewer-row-bottom {
  grid-template-columns: 1fr 1fr;
}

.book-page-input {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 252, 245, 0.96);
  color: var(--ink);
  padding: 12px 14px;
  font: inherit;
  text-align: center;
}

.book-page-total {
  color: rgba(255, 247, 232, 0.78);
  font-size: 0.94rem;
  white-space: nowrap;
}

.showcase-editor-form,
.showcase-card-list,
.showcase-editor-media {
  display: grid;
  gap: 12px;
}

.showcase-catalog-hero,
.showcase-category-section,
.showcase-item-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 230, 165, 0.42), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(245, 237, 220, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 38px rgba(60, 42, 24, 0.12);
}

.showcase-category-cards,
.showcase-mode-grid {
  display: grid;
  gap: 10px;
}

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

.showcase-category-chip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  border-radius: 18px;
  padding: 12px 14px;
  background: rgba(233, 246, 222, 0.88);
  color: #3d593d;
  font: inherit;
  font-weight: 800;
  text-align: left;
  box-shadow: 0 10px 20px rgba(64, 92, 56, 0.1);
}

.showcase-category-chip.is-active {
  background: linear-gradient(145deg, rgba(212, 240, 196, 0.98), rgba(184, 225, 167, 0.92));
  box-shadow:
    0 14px 26px rgba(92, 141, 74, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.showcase-category-chip strong {
  font-size: 14px;
  line-height: 1.2;
}

.showcase-category-chip span {
  min-width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #5b6f55;
  font-size: 13px;
  font-weight: 900;
}

.showcase-category-summary {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 254, 245, 0.92), rgba(244, 239, 223, 0.86)),
    radial-gradient(circle at top left, rgba(255, 223, 144, 0.24), transparent 38%);
  color: #4b3a26;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.showcase-category-summary-kicker {
  font-size: 14px;
  font-weight: 900;
}

.showcase-category-summary-text {
  color: #786551;
  font-size: 14px;
  line-height: 1.4;
}

.showcase-category-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.showcase-category-back {
  width: fit-content;
}

.showcase-category-toolbar-note {
  color: #6f604a;
  font-size: 13px;
  font-weight: 800;
}

.showcase-accordion-list {
  display: grid;
  gap: 12px;
}

.showcase-item-accordion {
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 8%, rgba(224, 245, 204, 0.42), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(241, 248, 233, 0.86));
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow: 0 16px 34px rgba(60, 42, 24, 0.1);
  overflow: hidden;
}

.showcase-item-accordion-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.showcase-item-accordion-head::-webkit-details-marker {
  display: none;
}

.showcase-item-accordion-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.showcase-item-accordion-copy strong {
  color: #355334;
  font-size: 18px;
  line-height: 1.2;
}

.showcase-item-accordion-copy span {
  color: #6e745f;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.showcase-item-accordion-tags,
.showcase-item-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.showcase-item-accordion-tags b,
.showcase-item-meta-chips span {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: #5b644e;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.showcase-item-accordion-meta {
  display: grid;
  justify-items: end;
  gap: 4px;
  flex-shrink: 0;
}

.showcase-item-accordion-meta span {
  color: #4f6840;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.showcase-item-accordion-meta b {
  color: #7b8d67;
  font-size: 18px;
  line-height: 1;
}

.showcase-item-accordion[open] .showcase-item-accordion-meta b {
  transform: rotate(180deg);
}

.showcase-item-accordion-body {
  padding: 0 10px 10px;
}

.showcase-mode-card {
  display: grid;
  gap: 6px;
  border: 0;
  border-radius: 18px;
  padding: 12px 14px;
  text-align: left;
  background: rgba(255, 250, 240, 0.86);
  color: #4b3a26;
  font: inherit;
  box-shadow: 0 10px 22px rgba(60, 42, 24, 0.08);
}

.showcase-mode-card strong {
  font-size: 16px;
}

.showcase-mode-card span {
  color: #7a684e;
  font-size: 13px;
  font-weight: 700;
}

.showcase-mode-card.is-active {
  background:
    linear-gradient(145deg, rgba(224, 245, 204, 0.98), rgba(194, 231, 166, 0.88)),
    radial-gradient(circle at top left, rgba(255, 239, 163, 0.24), transparent 36%);
  box-shadow:
    0 14px 26px rgba(92, 141, 74, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.78);
}

.showcase-category-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  list-style: none;
}

.showcase-category-section-head::-webkit-details-marker {
  display: none;
}

.showcase-category-section-copy {
  display: grid;
  gap: 4px;
}

.showcase-category-section-head strong {
  display: block;
  color: #3d3428;
  font-size: 18px;
}

.showcase-category-section-head span {
  display: block;
  margin-top: 3px;
  color: #7d6a53;
  font-size: 13px;
}

.showcase-category-section-meta {
  display: grid;
  justify-items: end;
  gap: 6px;
  color: #7b694d;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

.showcase-category-section-meta b {
  font-size: 16px;
  line-height: 1;
  transition: transform 180ms ease;
}

@media (max-width: 560px) {
  .showcase-category-cards,
  .showcase-mode-grid {
    grid-template-columns: 1fr;
  }
}

.showcase-category-section[open] .showcase-category-section-meta b {
  transform: rotate(180deg);
}

.showcase-status.is-success {
  background: rgba(236, 255, 230, 0.92);
  color: #46603b;
}

.showcase-status.is-error {
  background: rgba(255, 236, 232, 0.96);
  color: #8f4338;
}

.showcase-editor-form {
  padding: 14px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 230, 165, 0.74), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(245, 237, 220, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 38px rgba(60, 42, 24, 0.14);
}

.showcase-creator-summary {
  display: grid;
  gap: 10px;
}

.showcase-creator-summary-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(217, 245, 205, 0.96), rgba(192, 231, 170, 0.82));
  color: #355337;
  font: inherit;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(57, 92, 41, 0.12);
}

.showcase-creator-summary.is-open .showcase-creator-summary-btn {
  background: linear-gradient(145deg, rgba(241, 251, 233, 0.98), rgba(221, 243, 204, 0.88));
}

.showcase-creator-summary-body {
  display: grid;
}

.showcase-editor-top,
.showcase-editor-media-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.showcase-editor-top h5 {
  margin: 2px 0 0;
  font-size: 20px;
}

.showcase-field {
  display: grid;
  gap: 6px;
  color: #5b4932;
  font-size: 13px;
  font-weight: 800;
}

.showcase-field-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.showcase-help-popover {
  position: relative;
}

.showcase-help-popover[open] {
  z-index: 4;
}

.showcase-help-popover summary {
  list-style: none;
}

.showcase-help-popover summary::-webkit-details-marker {
  display: none;
}

.showcase-help-btn {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 227, 167, 0.92);
  color: #7c5b29;
  font: inherit;
  font-weight: 900;
}

.showcase-help-popover .showcase-category-help {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(360px, 78vw);
  box-shadow: 0 18px 34px rgba(59, 44, 24, 0.16);
}

.showcase-help-popover--panel[open] .showcase-help-btn {
  background: rgba(255, 132, 82, 0.94);
  color: #fff7ef;
  box-shadow: 0 8px 18px rgba(255, 132, 82, 0.24);
}

.showcase-help-popover--panel[open] .showcase-help-btn::before {
  content: "×";
  font-size: 18px;
  line-height: 1;
}

.showcase-help-popover--panel[open] .showcase-help-btn {
  font-size: 0;
}

.showcase-help-popover--panel {
  display: inline-block;
}

.showcase-field-title {
  flex-wrap: wrap;
}

.showcase-help-popover--panel[open] {
  flex: 1 0 100%;
  display: grid;
  justify-items: start;
  gap: 10px;
}

.showcase-help-popover--panel .showcase-category-help {
  position: static;
  width: auto;;
  box-sizing: border-box;
  margin-top: 0;
  max-height: none;
  overflow: visible;
  z-index: auto;
  padding: 16px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 237, 174, 0.58), transparent 36%),
    rgba(255, 250, 240, 0.98);
  box-shadow: 0 22px 54px rgba(47, 35, 21, 0.26);
}

.showcase-help-popover--panel .showcase-category-help::after {
  content: "Нажмите ×, чтобы свернуть справку";
  display: block;
  margin-top: 4px;
  color: #9a7c52;
  font-size: 12px;
  font-weight: 800;
}

.showcase-field input,
.showcase-field select,
.showcase-field textarea {
  width: 100%;
  border: 1px solid rgba(62, 46, 29, 0.12);
  border-radius: 16px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.showcase-field textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.45;
  font-weight: 600;
}

.showcase-category-help {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 250, 240, 0.92);
  border: 1px solid rgba(214, 182, 120, 0.24);
}

.showcase-category-help-list {
  display: grid;
  gap: 8px;
}

.showcase-category-help-item {
  display: grid;
  gap: 3px;
}

.showcase-category-help-item strong {
  color: #52412f;
}

.showcase-category-help-item span {
  color: #7a6b57;
  font-size: 13px;
  line-height: 1.45;
}

.showcase-editor-media {
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.showcase-editor-media input[type="file"] {
  width: 100%;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 249, 235, 0.78);
  border: 1px dashed rgba(128, 92, 48, 0.26);
}

.showcase-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.showcase-media-tile {
  appearance: none;
  padding: 0;
  cursor: zoom-in;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 16px;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 238, 175, 0.72), transparent 42%),
    rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(92, 67, 36, 0.08);
}

.showcase-media-tile img,
.showcase-media-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.showcase-media-placeholder,
.showcase-empty-media {
  min-height: 92px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 10px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.showcase-media-placeholder {
  height: 100%;
}

.showcase-media-placeholder strong {
  color: #5c4a31;
  font-size: 18px;
  line-height: 1;
}

.showcase-media-placeholder-note {
  align-content: center;
}

.showcase-media-tile-note {
  background: rgba(255, 248, 232, 0.94);
}

.showcase-bot-media-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 249, 235, 0.86);
  border: 1px solid rgba(216, 184, 125, 0.22);
  color: #6e5b45;
}

.showcase-bot-media-note strong,
.showcase-bot-media-note span {
  display: block;
}

.showcase-bot-media-note strong {
  color: #5c4730;
  line-height: 1.35;
}

.showcase-bot-media-note span {
  font-size: 13px;
  color: #8a755b;
}

.showcase-bot-media-icon {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 233, 170, 0.8);
  color: #7d5d31;
  flex: 0 0 auto;
}

.showcase-media-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(48, 34, 25, 0.72);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.showcase-media-lightbox {
  position: absolute;
  inset: 0;
  z-index: 30;
  background: rgba(20, 18, 14, 0.86);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 76px 18px 102px;
}

.showcase-media-lightbox-title {
  position: absolute;
  left: 18px;
  right: 78px;
  top: 18px;
  display: grid;
  gap: 2px;
  color: #fff8ed;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.36);
}

.showcase-media-lightbox-title strong {
  font-size: 16px;
}

.showcase-media-lightbox-title span {
  color: rgba(255, 248, 237, 0.76);
  font-size: 13px;
  font-weight: 800;
}

.showcase-media-lightbox-stage {
  width: min(92vw, 760px);
  height: min(66vh, 760px);
  display: grid;
  place-items: center;
}

.showcase-media-lightbox-stage img,
.showcase-media-lightbox-stage video {
  max-width: 100%;
  max-height: 100%;
  border-radius: 24px;
  object-fit: contain;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.42);
}

.showcase-media-lightbox-close,
.showcase-media-lightbox-nav {
  appearance: none;
  border: 0;
  position: absolute;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 248, 236, 0.92);
  color: #47331d;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.showcase-media-lightbox-close {
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  font-size: 28px;
  font-weight: 900;
}

.showcase-media-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  font-size: 32px;
  font-weight: 700;
}

.showcase-media-lightbox-nav.is-prev {
  left: 16px;
}

.showcase-media-lightbox-nav.is-next {
  right: 16px;
}

.showcase-media-lightbox-thumbs {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 18px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  overscroll-behavior-x: contain;
}

.showcase-media-lightbox-thumbs button {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  padding: 0;
  border: 2px solid rgba(255, 248, 236, 0.36);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 248, 236, 0.16);
}

.showcase-media-lightbox-thumbs button.is-active {
  border-color: rgba(255, 132, 82, 0.96);
  box-shadow: 0 0 0 3px rgba(255, 132, 82, 0.22);
}

.showcase-media-lightbox-thumbs img,
.showcase-media-lightbox-thumbs video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-editor-actions {
  margin-top: 2px;
  flex-wrap: wrap;
}

.showcase-editor-action-status {
  flex: 1 0 100%;
  display: grid;
  gap: 8px;
}

.showcase-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.showcase-item-head-copy {
  display: grid;
  gap: 6px;
}

.showcase-item-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: #7a6750;
  font-size: 13px;
  font-weight: 700;
}

.showcase-item-head strong {
  color: #372f24;
  font-size: 20px;
  line-height: 1.18;
}

.showcase-item-head > span:last-child {
  white-space: nowrap;
  color: #4f6840;
  font-weight: 900;
}

.showcase-item-card.is-review-target {
  box-shadow:
    0 0 0 2px rgba(255, 156, 98, 0.52),
    0 22px 46px rgba(83, 58, 31, 0.18);
}

.showcase-review-card {
  gap: 10px;
}

.showcase-review-card-head {
  align-items: center;
}

.showcase-review-item-link {
  padding: 0;
  border: 0;
  background: none;
  color: #355337;
  font: inherit;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.22;
  text-align: left;
  cursor: pointer;
}

.showcase-review-open-btn {
  flex: 0 0 auto;
}

.showcase-review-form {
  gap: 14px;
}

.showcase-review-target-card {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.82);
}

.showcase-review-target-kicker {
  color: #7d674a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.showcase-review-target-title {
  width: fit-content;
  padding: 0;
  border: 0;
  background: none;
  color: #372f24;
  font: inherit;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.24;
  text-align: left;
  cursor: pointer;
}

.showcase-reviews-intro {
  margin-bottom: 2px;
}

.showcase-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.showcase-status-pill.is-draft {
  background: rgba(255, 239, 198, 0.92);
  color: #8e6a28;
}

.showcase-status-pill.is-paused {
  background: rgba(241, 232, 224, 0.94);
  color: #82624e;
}

.showcase-description {
  display: grid;
  gap: 10px;
  line-height: 1.56;
  color: #433b2f;
}

.showcase-description p {
  margin: 0;
}

.showcase-description-row {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.6);
}

.showcase-description-row strong {
  color: #55462f;
}

.showcase-delivery-note {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(235, 248, 228, 0.84);
  color: #41553f;
}

.showcase-delivery-note strong {
  color: #355337;
}

.danger {
  color: #9d3f32;
}

.showcase-creator-card .showcase-media-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 640px) {
  .book-viewer-meta {
    justify-items: center;
    text-align: center;
  }

  .book-viewer-row {
    grid-template-columns: minmax(82px, 108px) auto 1fr;
  }
}

.avatar-picker {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(25, 36, 23, 0.62);
  backdrop-filter: blur(10px);
}

.avatar-picker-hidden {
  display: none;
}

.avatar-picker-card {
  width: min(96vw, 760px);
  max-height: min(92dvh, 900px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: 18px;
  border-radius: 28px;
  background: rgba(255, 248, 237, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 24px 56px rgba(17, 28, 18, 0.24);
}

.avatar-picker-head {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.avatar-picker-head h3 {
  font-size: 24px;
}

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

.avatar-choice {
  border: 0;
  border-radius: 22px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 22px rgba(24, 51, 70, 0.1);
}

.avatar-choice.is-active {
  outline: 3px solid rgba(255, 146, 94, 0.48);
  background: #fff8ef;
}

.avatar-choice-preview {
  aspect-ratio: 1 / 1.15;
  border-radius: 18px;
  background-position: center;
  background-size: 112% auto;
  background-repeat: no-repeat;
}

.avatar-picker-preview-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 22px rgba(24, 51, 70, 0.08);
}

.avatar-picker-preview-card-solo {
  max-width: 420px;
  margin: 0 auto;
}

.avatar-picker-preview-image {
  width: 100%;
  aspect-ratio: 1 / 1.18;
  border-radius: 22px;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  background-color: rgba(248, 241, 224, 0.72);
}

.avatar-picker-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.avatar-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.setting-chips {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.setting-chips .ghost-btn,
.setting-chips .pill {
  padding: 8px 12px;
  font-size: 0.88rem;
}

.avatar-inline-icon {
  width: 40px;
  height: 54px;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

.room-interior-map {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.7);
  background: rgba(255, 255, 255, 0.28);
  margin-bottom: 12px;
}

.room-interior-art {
  display: block;
  width: 100%;
  height: auto;
}

.interior-zone {
  position: absolute;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 247, 214, 0.88);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  box-shadow: 0 10px 18px rgba(24, 51, 70, 0.14);
}

.interior-zone.is-active {
  background: #fff1b8;
}

.room-occupants {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 14px;
}

.room-occupant {
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 16px rgba(24, 51, 70, 0.08);
}

.room-detail-title {
  margin: 0 0 8px;
  font-size: 18px;
}

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

.room-block {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.room-block strong {
  display: block;
  margin-bottom: 6px;
}

.room-scene {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  padding: 22px;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,0.7);
}

.room-decor {
  position: absolute;
  border-radius: 24px;
  opacity: 0.65;
}

.room-decor-left {
  left: 20px;
  bottom: 22px;
  width: 160px;
  height: 120px;
}

.room-decor-right {
  right: 24px;
  top: 24px;
  width: 180px;
  height: 140px;
}

.room-view.room-library .room-scene {
  background: linear-gradient(180deg, #f7e6c4 0 30%, #d29b6a 30% 36%, #9c6238 36% 100%);
}

.room-view.room-library .room-decor-left,
.room-view.room-library .room-decor-right {
  background: linear-gradient(180deg, #7f4f2a, #5a371f);
  box-shadow: inset 0 0 0 8px rgba(255,255,255,0.08);
}

.room-view.room-showcase .room-scene {
  min-height: 100dvh;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.room-view.room-showcase .room-decor-left,
.room-view.room-showcase .room-decor-right {
  display: none;
}

.room-view.room-barter .room-scene {
  min-height: 100dvh;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.room-view.room-barter .room-decor-left,
.room-view.room-barter .room-decor-right {
  display: none;
}

.room-view.room-cocreation .room-scene {
  min-height: 100dvh;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.room-view.room-cocreation .room-decor-left,
.room-view.room-cocreation .room-decor-right {
  display: none;
}

.room-view.room-my-home .room-scene {
  min-height: 100dvh;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.room-view.room-my-home .room-decor-left,
.room-view.room-my-home .room-decor-right {
  display: none;
}

.room-view.room-events .room-scene {
  min-height: 100dvh;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.room-view.room-events .room-decor-left,
.room-view.room-events .room-decor-right {
  display: none;
}

.room-view.room-flow .room-scene {
  min-height: 100dvh;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.room-view.room-flow .room-decor-left,
.room-view.room-flow .room-decor-right {
  display: none;
}

.room-view.room-magnet .room-scene {
  background: linear-gradient(180deg, #dff7ff 0 30%, #9ddcf0 30% 36%, #4687a4 36% 100%);
}

.room-view.room-magnet .room-decor-left,
.room-view.room-magnet .room-decor-right {
  background: linear-gradient(180deg, #ffffff, #a8e7ff);
}

.room-view.room-user .room-scene {
  min-height: 100dvh;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.room-view.room-user .room-decor-left,
.room-view.room-user .room-decor-right {
  display: none;
}

.room-view.room-rest .room-scene {
  min-height: 100dvh;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.room-view.room-mayak .room-scene {
  min-height: 100dvh;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.room-view.room-rest .room-decor-left,
.room-view.room-rest .room-decor-right {
  display: none;
}

.room-view.room-mayak .room-decor-left,
.room-view.room-mayak .room-decor-right {
  display: none;
}

.interaction-empty {
  color: var(--muted);
}

.interaction-title {
  margin: 0 0 6px;
  font-size: 18px;
}

.interaction-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.ghost-btn {
  border: 0;
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(255, 242, 221, 0.82);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}

.interaction-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.interaction-item {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
}

.cocreation-fullscreen {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  overflow: hidden;
  background: url("/assets/cocreation-interior-full.png") center / cover no-repeat;
}

.my-home-fullscreen {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(80, 45, 24, 0.92), rgba(46, 24, 13, 0.98)),
    repeating-linear-gradient(
      90deg,
      rgba(121, 72, 40, 0.18) 0 14px,
      rgba(84, 48, 28, 0.26) 14px 28px
    );
}

.my-home-art-shell {
  position: absolute;
  inset: 0;
  transform-origin: var(--zoom-origin, 50% 50%);
  transition: transform 260ms ease;
  will-change: transform;
}

.my-home-art-shell.is-zoomed {
  transform: var(--zoom-transform);
}

.my-home-art {
  display: block;
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  object-fit: cover;
}

.guest-home-fullscreen .my-home-art {
  object-position: center center;
}

.showcase-fullscreen .my-home-art {
  object-position: center center;
}

.barter-fullscreen .my-home-art {
  object-position: center center;
}

.barter-fullscreen .my-home-art-shell,
.barter-fullscreen .my-home-art {
  width: 100vw;
  min-width: 100vw;
}

.events-fullscreen .my-home-art {
  object-position: center center;
}

.events-fullscreen .my-home-art-shell,
.events-fullscreen .my-home-art {
  width: 100vw;
  min-width: 100vw;
}

.mayak-fullscreen .my-home-art {
  object-position: center center;
}

.flow-fullscreen .my-home-art {
  object-position: center center;
}

.flow-fullscreen .my-home-art-shell,
.flow-fullscreen .my-home-art {
  width: 100vw;
  min-width: 100vw;
}

.flow-live-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.flow-signal {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transform: translate(-50%, -50%);
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 251, 235, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-weight: 900;
  font-size: 13px;
  box-shadow:
    0 0 18px rgba(255, 236, 141, 0.72),
    0 10px 22px rgba(25, 57, 70, 0.2);
  backdrop-filter: blur(8px);
}

.flow-signal-orb {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 30%, #fff8c9, #ffd36f 52%, #ee8f43);
  box-shadow: 0 0 18px rgba(255, 215, 96, 0.9);
}

.flow-signal.is-active {
  animation: flowPulse 2.4s ease-in-out infinite;
}

.flow-signal.is-quiet {
  opacity: 0.72;
  filter: saturate(0.8);
}

.flow-signal-attention.is-active .flow-signal-orb {
  background: radial-gradient(circle at 35% 30%, #fff8d8, #ffb75e 48%, #e85d3f);
  box-shadow: 0 0 24px rgba(255, 116, 72, 0.95);
}

.flow-signal-progress.is-active .flow-signal-orb {
  background: radial-gradient(circle at 35% 30%, #f6ffe4, #9ee781 52%, #4ea66b);
  box-shadow: 0 0 22px rgba(129, 222, 127, 0.9);
}

.flow-signal-life.is-active .flow-signal-orb {
  background: radial-gradient(circle at 35% 30%, #ffffff, #d9c0ff 52%, #8b72dc);
  box-shadow: 0 0 22px rgba(193, 168, 255, 0.9);
}

@keyframes flowPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.08);
  }
}

.mayak-focus-card {
  position: absolute;
  z-index: 6;
  left: 18px;
  right: 18px;
  bottom: 116px;
  display: none;
  gap: 8px;
  max-width: 460px;
  padding: 16px 16px 14px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 246, 184, 0.92), transparent 34%),
    linear-gradient(145deg, rgba(255, 251, 239, 0.94), rgba(232, 245, 255, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 22px 42px rgba(23, 39, 54, 0.22);
  backdrop-filter: blur(12px);
  pointer-events: auto;
}

.mayak-focus-card.is-visible {
  display: grid;
}

.mayak-focus-card.is-mid {
  top: 31%;
  bottom: auto;
  transform: translateY(-50%);
}

.mayak-focus-card.is-upper {
  top: 18%;
  bottom: auto;
}

.showcase-fullscreen .mayak-focus-card.is-mid {
  top: 24%;
}

.showcase-fullscreen .mayak-focus-card.is-upper {
  top: 12%;
}

.mayak-focus-card h4 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
}

.mayak-focus-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.38;
}

.mayak-focus-kicker {
  color: #7b5b22;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mayak-focus-close {
  position: absolute;
  right: 10px;
  top: 10px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font: inherit;
  font-size: 20px;
  line-height: 1;
  box-shadow: 0 8px 16px rgba(24, 51, 70, 0.12);
}

.mayak-focus-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.mayak-card-button {
  justify-self: start;
  margin-top: 8px;
}

.mayak-metacard {
  position: relative;
  overflow: visible;
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 238, 168, 0.74), transparent 34%),
    linear-gradient(145deg, rgba(255, 252, 239, 0.96), rgba(231, 239, 255, 0.86));
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 36px rgba(47, 36, 85, 0.16);
}

.mayak-metacard h5 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
}

.mayak-metacard-image {
  display: block;
  width: 100%;
  max-width: min(100%, 300px);
  margin: 0 auto;
  border-radius: 20px;
  box-shadow: 0 16px 30px rgba(47, 36, 85, 0.18);
}

.mayak-metacard-media {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.mayak-metacard-zoom-hint {
  justify-self: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.mayak-metacard-media.is-expanded {
  position: fixed;
  inset: 18px 12px;
  z-index: 90;
  align-content: center;
  justify-items: center;
  padding: 22px 14px;
  border-radius: 28px;
  background: rgba(16, 22, 34, 0.88);
  backdrop-filter: blur(10px);
}

.mayak-metacard-media.is-expanded .mayak-metacard-image {
  width: auto;
  max-width: 100%;
  max-height: calc(100dvh - 110px);
  border-radius: 24px;
}

.mayak-metacard-media.is-expanded .mayak-metacard-zoom-hint {
  background: rgba(255, 248, 237, 0.92);
  color: var(--ink);
}

.mayak-metacard.is-image-expanded > :not(.mayak-metacard-media) {
  opacity: 0.08;
  pointer-events: none;
}

.ghost-btn[disabled],
.pill[disabled] {
  opacity: 0.45;
  pointer-events: none;
}

.mayak-metacard-glow {
  position: absolute;
  right: 16px;
  top: 10px;
  color: rgba(246, 189, 77, 0.7);
  font-size: 56px;
  line-height: 1;
  pointer-events: none;
}

.my-home-hitbox-layer {
  position: absolute;
  inset: 0;
}

.my-home-hitbox-layer.is-disabled,
.cocreation-hitbox-layer.is-disabled {
  pointer-events: none;
}

.my-home-art-shell.is-panel-open {
  pointer-events: none;
}

.my-home-hitbox {
  position: absolute;
  transform: translate(-50%, -50%);
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.my-home-back-btn,
.cocreation-scene-prompt,
.cocreation-scene-action {
  pointer-events: auto;
}

.cocreation-zoom-shell {
  position: absolute;
  inset: 0;
  transform-origin: var(--zoom-origin, 50% 50%);
  transition: transform 260ms ease;
}

.cocreation-zoom-shell.is-zoomed {
  transform: var(--zoom-transform);
}

.cocreation-fullscreen-art {
  display: block;
  width: 100%;
  min-height: 100dvh;
  object-fit: cover;
}

.cocreation-hitbox-layer,
.cocreation-scene-ui {
  position: absolute;
  inset: 0;
}

.cocreation-hitbox {
  position: absolute;
  transform: translate(-50%, -50%);
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.cocreation-hitbox.is-zoomed {
  outline: 0;
}

.cocreation-scene-ui {
  z-index: 3;
  pointer-events: none;
}

.cocreation-scene-prompt {
  position: absolute;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  display: none;
  width: max-content;
  max-width: calc(100% - 224px);
  padding: 7px 12px;
  border-radius: 999px;
  text-align: center;
  background: rgba(255, 248, 237, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 28px rgba(25, 36, 23, 0.22);
  pointer-events: auto;
}

.cocreation-scene-prompt .pill {
  display: none !important;
}

.cocreation-scene-prompt.is-visible {
  display: block;
}

.cocreation-scene-label {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}

.cocreation-scene-action {
  position: absolute;
  right: 24px;
  bottom: 46px;
  z-index: 7;
  display: none;
  pointer-events: auto;
}

.cocreation-scene-action.is-visible {
  display: block;
}

.cocreation-hand {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

.cocreation-hand-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 54px;
  font-size: 0;
  line-height: 1;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: drop-shadow(0 8px 14px rgba(47, 28, 8, 0.34));
}

.room-presence-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.room-avatar-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: auto;
  will-change: left, top;
}

.room-avatar-marker-face {
  display: block;
  width: 72px;
  height: 104px;
  margin: 0 auto 4px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: drop-shadow(0 7px 14px rgba(56, 32, 11, 0.28));
}

.room-avatar-marker.is-incognito .room-avatar-marker-face {
  filter: brightness(0) saturate(0) contrast(1.2) drop-shadow(0 7px 14px rgba(56, 32, 11, 0.28));
}

.room-avatar-marker-name {
  display: inline-block;
  max-width: 96px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 248, 237, 0.86);
  color: #5b3718;
  font-size: 11px;
  font-weight: 800;
  backdrop-filter: blur(4px);
}

.room-trace-marker {
  position: absolute;
  z-index: 7;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.96) 0 34%, rgba(255, 238, 160, 0.58) 56%, rgba(255, 210, 86, 0) 78%);
  color: #4b3519;
  font: inherit;
  font-size: 21px;
  filter: drop-shadow(0 0 12px rgba(255, 234, 132, 0.9));
  pointer-events: auto;
}

.guest-home-fullscreen.visit-seated .room-avatar-marker {
  z-index: 5;
}

.guest-home-fullscreen.visit-seated .room-avatar-marker-face {
  width: 92px;
  height: 122px;
}

.guest-home-fullscreen.visit-seated .room-avatar-marker-name {
  max-width: 110px;
  margin-top: -2px;
}

.room-form,
.meeting-form,
.guest-thread-form,
.cocreation-sheet,
.cocreation-sheet-body {
  position: relative;
  z-index: 20;
  pointer-events: auto;
}

.room-joystick {
  position: absolute;
  left: 10px;
  bottom: 16px;
  width: 110px;
  height: 110px;
  z-index: 5;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
}

.room-joystick-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 241, 191, 0.42), rgba(239, 140, 44, 0.18) 55%, rgba(94, 49, 19, 0.16) 72%, rgba(94, 49, 19, 0) 76%),
    url("/assets/nav-orb.png");
  background-position: center;
  background-size: cover;
  opacity: 0.52;
}

.room-joystick-thumb {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: url("/assets/nav-orb.png") center / cover no-repeat;
  box-shadow:
    0 8px 18px rgba(106, 42, 7, 0.28),
    inset 0 2px 0 rgba(255, 244, 206, 0.68);
  transform: translate(-50%, -50%);
  will-change: transform;
}

.cocreation-sheet {
  position: absolute;
  left: 10px;
  right: 10px;
  top: max(82px, env(safe-area-inset-top));
  bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 6;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 248, 237, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 36px rgba(24, 35, 24, 0.22);
  overflow: hidden;
}

.my-home-fullscreen.sheet-open .room-joystick,
.my-home-fullscreen.sheet-open .cocreation-scene-action {
  display: none;
}

.my-home-fullscreen.sheet-open .cocreation-scene-prompt {
  max-width: calc(100% - 40px);
}

.guest-thread-form textarea {
  min-height: 44px;
  max-height: 132px;
}

.notebook-reply-form textarea {
  min-height: 84px;
}

.guest-thread-form .pill,
.guest-thread-form .ghost-btn,
.notebook-reply-form .pill,
.notebook-reply-form .ghost-btn {
  width: 100%;
}

.guest-thread-form .meeting-actions,
.notebook-reply-form .meeting-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.guest-thread-form,
.notebook-reply-form {
  margin-top: 10px;
}

.cocreation-sheet-body .guest-thread-form {
  position: sticky;
  bottom: 0;
  padding-top: 8px;
  background: linear-gradient(180deg, rgba(255, 248, 237, 0), rgba(255, 248, 237, 0.96) 18%, rgba(255, 248, 237, 0.98));
  overflow-anchor: auto;
}

.guest-thread-send-state {
  display: grid;
  gap: 10px;
}

.cocreation-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cocreation-sheet-title {
  font-size: 18px;
  font-weight: 800;
}

.cocreation-sheet-close {
  flex-shrink: 0;
}

.cocreation-sheet-body {
  display: block;
  min-height: 0;
  max-height: none;
  overflow: auto;
  padding-right: 4px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overflow-anchor: none;
}

.showcase-fullscreen .cocreation-sheet-body {
  overflow-y: auto !important;
  padding-right: 6px;
  padding-bottom: 20px;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.cocreation-sheet-body > * + * {
  margin-top: 10px;
}

.legend {
  display: none;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 248, 237, 0.82);
  backdrop-filter: blur(8px);
}

.world-extras {
  display: none;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
}

.dot.online {
  background: #41b96d;
}

.dot.resting {
  background: #9e88de;
}

.profile-grid,
.list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.profile-row,
.list-item {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.list-item h4 {
  margin: 0 0 6px;
  font-size: 16px;
}

.muted {
  color: var(--muted);
}

@media (max-width: 980px) {
  .layout,
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

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

  .proximity-bar {
    align-items: stretch;
    flex-direction: column;
  }

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

  .meadow {
    min-height: 0;
  }

  .shell {
    padding: 0;
  }

  .topbar {
    padding: 10px 12px 6px;
  }

  h1 {
    font-size: 20px;
  }

  .eyebrow {
    font-size: 11px;
  }

  .scene-card {
    padding: 0;
  }

  #worldView,
  .layout,
  .scene-card {
    min-height: 0;
    height: 100%;
  }

  .meadow {
    min-height: 100dvh;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
  }

  .scene-actions {
    align-items: flex-end;
    gap: 6px;
  }

  .scene-actions-row {
    gap: 6px;
  }

  .pill,
  .ghost-btn {
    padding: 7px 10px;
    font-size: 13px;
  }

  .meadow-title-box {
    max-width: 58%;
    padding: 8px 10px;
  }

  .meadow-title-box h3 {
    font-size: 17px;
  }

  .meadow-status {
    font-size: 12px;
  }

  .location-preview {
    padding: 12px;
  }

  .location-preview-card {
    gap: 2px;
  }

  .location-preview-text {
    font-size: 13px;
  }

  .location-preview-frame {
    width: 100%;
    height: min(44dvh, 360px);
    padding: 0;
    border-radius: 18px;
  }

  .location-preview-copy {
    margin-top: 12px;
  }

  .cocreation-scene-action {
    right: 18px;
    bottom: 38px;
  }

  .approach-hint,
  .proximity-text,
  .interaction-panel {
    font-size: 13px;
  }

  .interaction-panel:not(.is-empty) {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 10px;
    z-index: 38;
    max-height: min(78dvh, 700px);
    overflow: auto;
    overscroll-behavior: contain;
    margin-top: 0;
    padding: 12px;
    background: rgba(255, 248, 237, 0.9);
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 42px rgba(24, 51, 70, 0.18);
  }

  .interaction-panel.is-tropa-travnika:not(.is-empty) {
    display: contents;
    padding: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .ambient-sound-toggle {
    right: 10px;
    bottom: 18px;
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .location {
    width: 108px;
  }

  .location.location-events {
    width: 132px;
    height: 104px;
  }

  .location.location-barter {
    width: 136px;
  }

  .location.location-mayak {
    width: 122px;
  }

  .location.location-rest {
    width: 146px;
  }

  .avatar {
    width: 58px;
  }

  .avatar-face {
    width: 40px;
    height: 40px;
  }

  .avatar.me .avatar-face.avatar-face-photo {
    width: 36px;
    height: 50px;
    margin-bottom: 1px;
  }

  .avatar.online-user .avatar-face.avatar-face-photo,
  .avatar.resting .avatar-face.avatar-face-photo {
    width: 36px;
    height: 50px;
  }

  .avatar-name {
    font-size: 9px;
    padding: 4px 7px;
  }

  .avatar-picker-card {
    padding: 14px;
    border-radius: 22px;
  }

  .avatar-picker-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .avatar-picker-preview-card-solo {
    max-width: none;
  }

  .meeting-form textarea {
    min-height: 132px;
  }

  .my-home-custom-order-form textarea {
    min-height: 64px;
  }

  .meeting-actions {
    justify-content: space-between;
  }

  .meeting-actions .ghost-btn,
  .meeting-actions .pill {
    flex: 1 1 calc(50% - 4px);
    text-align: center;
  }

  .meeting-game-grid {
    grid-template-columns: 1fr;
  }

  .meadow-overlay-top {
    top: 10px;
    left: 10px;
    right: 10px;
    gap: 8px;
  }

  .meadow-overlay-bottom {
    left: 8px;
    right: 8px;
    bottom: 14px;
    min-height: 128px;
  }

  .meadow-controls-row {
    right: 0;
    bottom: 0;
    width: 84px;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 0;
  }

  .legend {
    gap: 10px;
    font-size: 11px;
    padding: 8px 10px;
  }

  .approach-hint {
    left: 112px;
    right: 0;
    bottom: 72px;
    font-size: 12px;
    padding: 9px 10px;
  }

  .proximity-bar {
    left: 112px;
    right: 0;
    bottom: 0;
    padding: 9px 10px;
  }

  .proximity-text {
    font-size: 11px;
  }

  .meadow-joystick {
    left: 2px;
    bottom: 0;
    width: 102px;
    height: 102px;
  }

  .joystick-thumb {
    width: 48px;
    height: 48px;
  }

  .room-joystick {
    width: 102px;
    height: 102px;
    left: 8px;
    bottom: 12px;
  }

  .room-joystick-thumb {
    width: 48px;
    height: 48px;
  }

  .cocreation-scene-prompt {
    left: 50%;
    right: auto;
    top: 12px;
    max-width: calc(100% - 184px);
    padding: 6px 10px;
  }

  .cocreation-scene-label {
    font-size: 15px;
  }

  .cocreation-scene-action {
    right: 12px;
    bottom: 32px;
  }

  .cocreation-hand-glyph {
    font-size: 40px;
  }

  .cocreation-sheet {
    left: 8px;
    right: 8px;
    top: max(76px, env(safe-area-inset-top));
    bottom: 126px;
    padding: 12px;
  }

  .interior-zone {
    padding: 7px 10px;
    font-size: 12px;
  }
}

.web-auth-gate {
  z-index: 120;
}

.web-auth-card {
  max-width: 520px;
}

.web-auth-avatar-grid {
  max-height: min(52vh, 420px);
}

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

.web-auth-form label {
  display: grid;
  gap: 6px;
  color: #394150;
  font-weight: 800;
}

.web-auth-form input {
  width: 100%;
  border: 1px solid rgba(75, 92, 116, 0.18);
  border-radius: 16px;
  padding: 13px 14px;
  font: inherit;
  background: rgba(255, 255, 255, 0.88);
  color: #202838;
  outline: none;
}

.web-auth-form input:focus {
  border-color: rgba(255, 126, 82, 0.72);
  box-shadow: 0 0 0 4px rgba(255, 126, 82, 0.14);
}

.web-auth-selected-avatar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
}

.web-auth-selected-avatar .avatar-choice-preview {
  width: 82px;
  height: 92px;
}

.speech-bubble {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  max-width: min(210px, 46vw);
  min-width: 54px;
  padding: 9px 12px;
  border-radius: 18px 18px 18px 6px;
  background: rgba(255, 252, 244, 0.96);
  border: 1px solid rgba(72, 55, 35, 0.14);
  box-shadow: 0 10px 26px rgba(33, 25, 18, 0.18);
  color: #2d3442;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.28;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  z-index: 8;
  pointer-events: none;
  animation: speechPop 0.22s ease-out both;
}

.speech-bubble::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: -7px;
  width: 14px;
  height: 14px;
  background: inherit;
  border-right: 1px solid rgba(72, 55, 35, 0.12);
  border-bottom: 1px solid rgba(72, 55, 35, 0.12);
  transform: rotate(45deg);
}

.speech-bubble.is-own {
  background: linear-gradient(135deg, rgba(255, 241, 196, 0.98), rgba(255, 255, 247, 0.97));
  border-color: rgba(255, 150, 92, 0.28);
}

.room-avatar-marker .speech-bubble {
  bottom: calc(100% + 6px);
  max-width: min(190px, 48vw);
  font-size: 12px;
}

.speech-composer {
  position: fixed;
  left: max(14px, env(safe-area-inset-left));
  right: max(14px, env(safe-area-inset-right));
  bottom: max(124px, calc(env(safe-area-inset-bottom) + 108px));
  z-index: 75;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 8px;
  border-radius: 22px;
  background: rgba(255, 250, 239, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 38px rgba(30, 20, 14, 0.22);
  backdrop-filter: blur(14px);
}

.speech-composer.is-room {
  bottom: max(14px, env(safe-area-inset-bottom));
}

.speech-composer-input {
  min-width: 0;
  border: 0;
  border-radius: 17px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.94);
  color: #273142;
  font: inherit;
  font-weight: 750;
  outline: none;
}

.speech-composer-send {
  border: 0;
  border-radius: 17px;
  padding: 0 14px;
  background: linear-gradient(135deg, #ff8a5c, #ffb26b);
  color: #fff;
  font: inherit;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(255, 116, 80, 0.28);
}

@keyframes speechPop {
  from { opacity: 0; transform: translateX(-50%) translateY(8px) scale(0.94); }
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

@media (max-width: 640px) {
  .speech-bubble {
    max-width: 165px;
    font-size: 12px;
    padding: 8px 10px;
  }

  .speech-composer {
    left: 8px;
    right: 8px;
    bottom: max(112px, calc(env(safe-area-inset-bottom) + 102px));
    grid-template-columns: 1fr auto;
  }

  .speech-composer.is-room {
    bottom: max(8px, env(safe-area-inset-bottom));
  }

  .speech-composer-send {
    padding: 0 11px;
  }
}

.showcase-media-upload-button {
  display: inline-grid;
  place-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #ff8a5c, #ffb26b);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(255, 116, 80, 0.24);
  cursor: pointer;
}

.showcase-media-upload-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.showcase-media-upload-progress {
  margin-top: 10px;
  border-radius: 16px;
  padding: 10px 12px;
  background: rgba(255, 245, 215, 0.94);
  color: #7a4c1f;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255, 188, 104, 0.28);
}

.showcase-editor.is-media-uploading .showcase-media-upload-button {
  opacity: 0.7;
  pointer-events: none;
}

.speech-toggle-btn {
  position: fixed;
  left: 116px;
  right: auto;
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 76;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(236, 250, 255, 0.92);
  box-shadow: 0 10px 20px rgba(23, 41, 56, 0.18);
  font-size: 22px;
}

.speech-toggle-btn.is-inline {
  position: static;
  width: auto;
  height: auto;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 20px;
  background: rgba(236, 250, 255, 0.92);
}

.speech-composer.is-closed {
  display: contents;
}

.speech-composer.is-closed.is-meeting {
  display: none;
}

.speech-composer.is-open {
  grid-template-columns: auto 1fr auto;
  align-items: center;
  bottom: max(116px, calc(env(safe-area-inset-bottom) + 100px));
}

.speech-composer.is-open.is-meeting {
  bottom: max(12px, env(safe-area-inset-bottom));
}

.speech-composer-back {
  border: 0;
  border-radius: 16px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.76);
  color: #6f5b49;
  font: inherit;
  font-weight: 900;
}

.proximity-speech-open-note {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 900;
  color: #6f5b49;
}

@media (max-width: 640px) {
  .speech-toggle-btn {
    left: 112px;
    right: auto;
    bottom: max(24px, env(safe-area-inset-bottom));
    width: 44px;
    height: 44px;
  }

  .speech-composer.is-open {
    left: 8px;
    right: 8px;
    bottom: max(110px, calc(env(safe-area-inset-bottom) + 98px));
  }

  .speech-composer.is-open.is-meeting {
    bottom: max(8px, env(safe-area-inset-bottom));
  }

  .speech-composer-back {
    padding: 0 10px;
    font-size: 13px;
  }
}

.speech-bubble.is-private {
  background: linear-gradient(135deg, rgba(225, 246, 255, 0.98), rgba(255, 255, 255, 0.97));
  border-color: rgba(78, 152, 196, 0.28);
}

.speech-composer.is-open.is-avatar {
  left: var(--speech-composer-left, 50vw);
  right: auto;
  top: var(--speech-composer-top, 50vh);
  bottom: auto;
  width: min(330px, calc(100vw - 28px));
  transform: translate(-50%, -100%);
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 9px;
  border-radius: 22px 22px 22px 8px;
  background: rgba(255, 252, 244, 0.97);
  border: 1px solid rgba(72, 55, 35, 0.14);
  box-shadow: 0 14px 34px rgba(33, 25, 18, 0.2);
  backdrop-filter: blur(12px);
}

.speech-composer.is-open.is-avatar::after {
  content: "";
  position: absolute;
  left: var(--speech-composer-tail-left, 26px);
  bottom: -7px;
  width: 15px;
  height: 15px;
  background: inherit;
  border-right: 1px solid rgba(72, 55, 35, 0.12);
  border-bottom: 1px solid rgba(72, 55, 35, 0.12);
  transform: rotate(45deg);
}

.speech-composer.is-open.is-avatar .speech-composer-input {
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.speech-composer.is-open.is-avatar .speech-composer-back,
.speech-composer.is-open.is-avatar .speech-composer-send {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.speech-composer.is-open.is-avatar .speech-composer-send {
  font-size: 17px;
}

@media (max-width: 640px) {
  .speech-composer.is-open.is-avatar {
    width: min(300px, calc(100vw - 22px));
  }
}

.speech-composer.is-open.is-avatar {
  width: min(260px, calc(100vw - 34px));
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px;
  padding: 7px 8px 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(33, 25, 18, 0.18);
}

.speech-composer.is-open.is-avatar .speech-composer-input {
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 999px;
  background: transparent;
  font-size: 14px;
  font-weight: 850;
}

.speech-composer.is-open.is-avatar .speech-composer-back {
  position: absolute;
  top: -8px;
  right: -8px;
  z-index: 2;
  width: 22px;
  height: 22px;
  min-width: 22px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: #5b4638;
  font-size: 15px;
  line-height: 1;
  box-shadow: 0 5px 12px rgba(33, 25, 18, 0.12);
}

.speech-composer.is-open.is-avatar .speech-composer-send {
  position: fixed;
  left: auto;
  right: max(26px, calc(env(safe-area-inset-right) + 26px));
  bottom: max(124px, calc(env(safe-area-inset-bottom) + 116px));
  z-index: 78;
  width: 54px;
  height: 54px;
  min-width: 54px;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ff8a5c, #ffb26b);
  color: #fff;
  font-size: 22px;
  box-shadow: 0 12px 24px rgba(255, 116, 80, 0.34);
}

.speech-composer.is-open.is-avatar .speech-composer-input:placeholder-shown + .speech-composer-back + .speech-composer-send {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.86);
}

@media (max-width: 640px) {
  .speech-composer.is-open.is-avatar {
    width: min(248px, calc(100vw - 28px));
  }

  .speech-composer.is-open.is-avatar .speech-composer-send {
    right: max(28px, calc(env(safe-area-inset-right) + 28px));
    bottom: max(120px, calc(env(safe-area-inset-bottom) + 112px));
  }
}

.avatar-preview-icon-btn {
  min-width: 44px;
  width: 44px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  font-size: 20px;
}

.user-safety-list .room-entry strong {
  font-size: 15px;
}

.proximity-bar {
  right: auto;
  max-width: min(58vw, 300px);
}

.proximity-bar .speech-toggle-btn.is-inline {
  width: 44px;
  min-width: 44px;
  height: 38px;
  padding: 0;
}

.speech-composer.is-open.is-avatar {
  width: min(168px, calc(100vw - 34px));
  min-width: 142px;
}

.speech-composer.is-open.is-avatar .speech-composer-input {
  font-size: 13px;
  padding-left: 6px;
  padding-right: 6px;
}

@media (max-width: 640px) {
  .proximity-bar {
    right: auto;
    max-width: min(58vw, 292px);
  }

  .speech-composer.is-open.is-avatar {
    width: min(164px, calc(100vw - 28px));
    min-width: 138px;
  }
}

.speech-composer.is-open.is-avatar {
  width: min(112px, calc(100vw - 34px));
  min-width: 96px;
  padding: 8px 16px 8px 10px;
  border: 2px solid rgba(28, 28, 28, 0.76);
  box-shadow: 0 8px 0 rgba(28, 28, 28, 0.08), 0 12px 22px rgba(33, 25, 18, 0.16);
}

.speech-composer.is-open.is-avatar::after {
  border-right: 2px solid rgba(28, 28, 28, 0.72);
  border-bottom: 2px solid rgba(28, 28, 28, 0.72);
}

.speech-composer.is-open.is-avatar .speech-composer-input {
  min-height: 32px;
  padding: 5px 2px;
  font-size: 12px;
  font-weight: 900;
}

.speech-composer.is-open.is-avatar .speech-composer-back,
.speech-composer.is-open.is-avatar .speech-composer-send {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border: 2px solid rgba(28, 28, 28, 0.62);
  box-shadow: 0 3px 0 rgba(28, 28, 28, 0.08);
}

.speech-composer.is-open.is-avatar .speech-composer-back {
  top: -11px;
  right: -11px;
  font-size: 14px;
}

.speech-composer.is-open.is-avatar .speech-composer-send {
  position: absolute;
  left: auto;
  right: -11px;
  bottom: -13px;
  z-index: 2;
  padding: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ff8a5c, #ffb26b);
  color: #fff;
  font-size: 13px;
}

.speech-composer.is-open.is-avatar .speech-composer-input:placeholder-shown + .speech-composer-back + .speech-composer-send {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.86);
}

.proximity-bar {
  overflow: hidden;
}

@media (max-width: 640px) {
  .speech-composer.is-open.is-avatar {
    width: min(110px, calc(100vw - 28px));
    min-width: 94px;
  }
}

.speech-composer.is-open.is-avatar {
  width: min(104px, calc(100vw - 34px));
  min-width: 92px;
  padding: 9px 18px 9px 10px;
  border-radius: 28px;
}

.speech-composer.is-open.is-avatar .speech-composer-input {
  height: 42px;
  min-height: 42px;
  resize: none;
  overflow: hidden;
  white-space: pre-line;
  line-height: 1.12;
  text-align: left;
  align-self: start;
}

.speech-composer.is-open.is-avatar .speech-composer-input::placeholder {
  white-space: pre-line;
  line-height: 1.12;
  opacity: 0.86;
}

@media (max-width: 640px) {
  .speech-composer.is-open.is-avatar {
    width: min(102px, calc(100vw - 28px));
    min-width: 90px;
  }
}

.room-avatar-marker-face {
  transform: scaleX(var(--avatar-flip, 1));
  transform-origin: 50% 50%;
}

.room-meeting-bar {
  position: absolute;
  left: 116px;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 34;
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: min(74vw, 360px);
  padding: 9px 10px;
  border-radius: 20px;
  background: rgba(255, 248, 237, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 24px rgba(24, 51, 70, 0.16);
  backdrop-filter: blur(10px);
}

.room-meeting-name {
  max-width: 86px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #5b3718;
  font-weight: 900;
  font-size: 12px;
}

.room-meeting-bar .ghost-btn {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.room-meeting-panel {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: max(96px, calc(env(safe-area-inset-bottom) + 88px));
  z-index: 38;
  max-height: min(58dvh, 430px);
  overflow: auto;
  padding: 16px 14px 14px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 247, 203, 0.86), transparent 30%),
    linear-gradient(145deg, rgba(255, 251, 239, 0.94), rgba(235, 248, 225, 0.86));
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 38px rgba(25, 45, 35, 0.24);
  backdrop-filter: blur(14px);
  pointer-events: auto;
}

.room-meeting-panel .interaction-close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 2;
}

.speech-composer.is-open.is-room {
  left: var(--speech-composer-left, 50vw);
  right: auto;
  top: var(--speech-composer-top, 50vh);
  bottom: auto;
  width: min(104px, calc(100vw - 34px));
  min-width: 92px;
  transform: translate(-50%, -100%);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
  padding: 9px 18px 9px 10px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  border: 2px solid rgba(28, 28, 28, 0.76);
  box-shadow: 0 8px 0 rgba(28, 28, 28, 0.08), 0 12px 22px rgba(33, 25, 18, 0.16);
}

.speech-composer.is-open.is-room::after {
  content: "";
  position: absolute;
  left: var(--speech-composer-tail-left, 26px);
  bottom: -7px;
  width: 15px;
  height: 15px;
  background: inherit;
  border-right: 2px solid rgba(28, 28, 28, 0.72);
  border-bottom: 2px solid rgba(28, 28, 28, 0.72);
  transform: rotate(45deg);
}

.speech-composer.is-open.is-room .speech-composer-input {
  height: 42px;
  min-height: 42px;
  padding: 5px 2px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  resize: none;
  overflow: hidden;
  white-space: pre-line;
  color: #273142;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.12;
  outline: none;
}

.speech-composer.is-open.is-room .speech-composer-input::placeholder {
  white-space: pre-line;
  line-height: 1.12;
  opacity: 0.86;
}

.speech-composer.is-open.is-room .speech-composer-back,
.speech-composer.is-open.is-room .speech-composer-send {
  position: absolute;
  z-index: 2;
  width: 22px;
  height: 22px;
  min-width: 22px;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid rgba(28, 28, 28, 0.62);
  box-shadow: 0 3px 0 rgba(28, 28, 28, 0.08);
}

.speech-composer.is-open.is-room .speech-composer-back {
  top: -11px;
  right: -11px;
  background: rgba(255, 255, 255, 0.96);
  color: #5b4638;
  font-size: 14px;
}

.speech-composer.is-open.is-room .speech-composer-send {
  right: -11px;
  bottom: -13px;
  background: linear-gradient(135deg, #ff8a5c, #ffb26b);
  color: #fff;
  font-size: 13px;
}

.speech-composer.is-open.is-room .speech-composer-input:placeholder-shown + .speech-composer-back + .speech-composer-send {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.86);
}

@media (max-width: 640px) {
  .room-meeting-bar {
    left: 112px;
    right: auto;
    max-width: min(68vw, 300px);
    padding: 8px 9px;
    gap: 7px;
  }

  .room-meeting-bar .ghost-btn {
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }
}

.speech-bubble {
  width: max-content;
  min-width: 96px;
  max-width: min(178px, 44vw);
  padding: 12px 13px 10px;
  border-radius: 28px;
  border: 2px solid rgba(28, 28, 28, 0.76);
  box-shadow: 0 8px 0 rgba(28, 28, 28, 0.08), 0 12px 22px rgba(33, 25, 18, 0.16);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.16;
  overflow-wrap: break-word;
  word-break: normal;
  text-align: left;
}

.speech-bubble::after {
  border-right: 2px solid rgba(28, 28, 28, 0.72);
  border-bottom: 2px solid rgba(28, 28, 28, 0.72);
}

.room-avatar-marker .speech-bubble {
  min-width: 96px;
  max-width: min(178px, 44vw);
  font-size: 13px;
}

@media (max-width: 640px) {
  .speech-bubble,
  .room-avatar-marker .speech-bubble {
    min-width: 92px;
    max-width: min(166px, 48vw);
    padding: 11px 12px 9px;
  }
}

.proximity-bar {
  right: auto !important;
  width: auto !important;
  max-width: calc(100vw - 134px) !important;
  justify-items: start;
  align-items: start !important;
  overflow: visible;
}

.proximity-bar #proximityActions {
  width: auto;
  max-width: 100%;
  margin-top: 4px;
  align-items: center;
  justify-content: flex-start;
}

.proximity-bar #proximityActions .ghost-btn,
.proximity-bar #proximityActions .pill,
.proximity-bar #proximityActions .speech-toggle-btn.is-inline {
  flex: 0 0 auto;
}

.room-meeting-bar,
.room-meeting-bar * {
  pointer-events: auto;
}

.proximity-bar {
  overflow: hidden !important;
  contain: paint;
}

.proximity-bar #proximityActions {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 8px;
  overflow: hidden;
}

.proximity-bar #proximityActions .ghost-btn,
.proximity-bar #proximityActions .pill,
.proximity-bar #proximityActions .speech-toggle-btn.is-inline {
  max-width: 132px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.speech-bubble {
  min-width: 104px;
  max-width: min(150px, 42vw);
  padding: 13px 14px 11px;
  line-height: 1.18;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.speech-bubble.is-own {
  min-width: 104px;
}

@media (max-width: 640px) {
  .speech-bubble,
  .room-avatar-marker .speech-bubble {
    min-width: 104px;
    max-width: min(150px, 48vw);
    line-height: 1.18;
  }
}

.speech-composer.is-open.is-avatar .speech-composer-input,
.speech-composer.is-open.is-room .speech-composer-input {
  text-align: center;
  align-self: center;
  padding-top: 8px;
  padding-bottom: 4px;
}

.speech-composer.is-open.is-avatar .speech-composer-input::placeholder,
.speech-composer.is-open.is-room .speech-composer-input::placeholder {
  text-align: center;
}
