/* ==========================================================================
   20-10 The Living Bouquet & Wishing Sanctuary
   Non-Card, Pure Atmospheric Typography & Fluid Botanical Canvas
   Strict Refusal of Generic Boxed Cards and SaaS Containers
   ========================================================================== */

:root {
  --bg-void: #07060a;
  --bg-mist: rgba(18, 15, 24, 0.75);
  --bg-sheet: rgba(20, 17, 28, 0.94);

  --text-pure: #fdfbf7;
  --text-primary: #f2edf8;
  --text-muted: #cfc8dc;
  --text-dim: #8c849b;

  --accent-rose: #e5879e;
  --accent-gold: #f3c77c;
  --accent-coral: #e0836f;
  --accent-sage: #9bb7a8;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --radius-pill: 9999px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  height: 100dvh;
  min-height: -webkit-fill-available;
  overflow: hidden;
  background-color: var(--bg-void);
  color: var(--text-pure);
  font-family: var(--font-sans);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

/* Screen Reader Only for Semantic SEO */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Background Canvas */
#gardenCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: block;
}

.icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.hidden {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Whispering Quote Intro (Pure Ethereal Typography Over Live Canvas)
   -------------------------------------------------------------------------- */
.whisper-intro {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(8, 7, 12, 0.45) 0%, rgba(8, 7, 12, 0.7) 100%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: clamp(24px, 5vw, 48px);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  /* Smooth GPU Composite */
  will-change: opacity, transform;
  animation: whisperIntroEnter 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes whisperIntroEnter {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.whisper-intro.dissolved {
  pointer-events: none;
  animation: whisperDissolve 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes whisperDissolve {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
    visibility: visible;
  }
  99% {
    opacity: 0;
    transform: translateY(-8px) scale(1.03);
    filter: blur(2px);
    visibility: visible;
  }
  100% {
    opacity: 0;
    transform: translateY(-8px) scale(1.03);
    filter: blur(2px);
    visibility: hidden;
  }
}

.whisper-content {
  position: relative;
  max-width: 680px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  pointer-events: none;
}

.whisper-prelude {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-rose);
  font-weight: 600;
  opacity: 0.9;
}

.whisper-prelude-dot {
  width: 5px;
  height: 5px;
  border-radius: var(--radius-pill);
  background-color: var(--accent-rose);
  box-shadow: 0 0 10px var(--accent-rose);
  animation: pulseDot 2.5s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 0.5; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.3); }
}

.whisper-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 600;
  color: var(--text-pure);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6), 0 0 40px rgba(229, 135, 158, 0.25);
}

.whisper-quote-wrap {
  position: relative;
  max-width: 600px;
  width: 100%;
  padding: 10px 32px;
  margin: 6px 0;
}

.whisper-poetic-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.6;
  color: var(--accent-gold);
  text-shadow: 0 0 28px rgba(243, 199, 124, 0.45);
  margin: 0;
  text-wrap: balance;
}

.quote-symbol {
  position: absolute;
  font-family: var(--font-serif);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--accent-gold);
  opacity: 0.3;
  pointer-events: none;
}

.quote-symbol:first-of-type {
  top: -10px;
  left: 0;
}

.quote-symbol:last-of-type {
  bottom: -25px;
  right: 0;
}

.whisper-tap-prompt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  opacity: 0.75;
  animation: promptBreathe 3s infinite ease-in-out;
}

.tap-dot {
  width: 4px;
  height: 4px;
  border-radius: var(--radius-pill);
  background-color: var(--accent-gold);
}

@keyframes promptBreathe {
  0%, 100% { opacity: 0.45; transform: translateY(0); }
  50% { opacity: 0.85; transform: translateY(-2px); }
}

/* --------------------------------------------------------------------------
   Floating Anchors (Non-SaaS, Seamless Integration)
   -------------------------------------------------------------------------- */
.floating-anchors {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  pointer-events: none;
  padding: clamp(16px, 3.5vw, 36px);
}

.anchor {
  position: absolute;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.anchor-top-left {
  top: clamp(16px, 3.5vw, 36px);
  left: clamp(16px, 3.5vw, 36px);
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.anchor-top-right {
  top: clamp(16px, 3.5vw, 36px);
  right: clamp(16px, 3.5vw, 36px);
}

.anchor-bottom-left {
  bottom: clamp(16px, 3.5vw, 36px);
  left: clamp(16px, 3.5vw, 36px);
}

.anchor-bottom-right {
  bottom: clamp(16px, 3.5vw, 36px);
  right: clamp(16px, 3.5vw, 36px);
}

.brand-monogram {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-pure);
  opacity: 0.88;
}

.garden-tally {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.tally-count {
  color: var(--accent-gold);
  font-weight: 500;
}

/* Center Whisper Hint */
.center-whisper {
  position: absolute;
  top: 14%;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  opacity: 0.7;
  transition: opacity 1.2s ease;
}

.whisper-hint {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-align: center;
  white-space: nowrap;
}

/* Ethereal Floating Buttons */
.ethereal-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: var(--bg-mist);
  color: var(--text-muted);
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ethereal-btn:hover {
  background-color: rgba(28, 25, 36, 0.85);
  color: var(--text-pure);
  transform: translateY(-1px);
}

.ethereal-btn.highlighted {
  background: linear-gradient(135deg, #ffd1dc 0%, #f49db3 45%, #d86d87 100%);
  color: #140c18;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 24px rgba(229, 135, 158, 0.45), 0 8px 24px rgba(0, 0, 0, 0.5);
  padding: 0 22px;
  min-height: 40px;
  box-sizing: border-box;
  letter-spacing: 0.02em;
}

.ethereal-btn.highlighted:hover {
  background: linear-gradient(135deg, #ffe2e9 0%, #faaec1 45%, #e17992 100%);
  color: #0b070f;
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(229, 135, 158, 0.65), 0 12px 28px rgba(0, 0, 0, 0.6);
}

.ethereal-btn.highlighted:active {
  transform: translateY(0);
}

.ethereal-btn.highlighted svg {
  transition: transform 0.3s ease;
}

.ethereal-btn.highlighted:hover svg {
  transform: rotate(30deg) scale(1.1);
}

/* Personal Flower Status Tag */
.flower-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  background-color: var(--bg-mist);
  padding: 0 16px;
  min-height: 40px;
  box-sizing: border-box;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.jump-plot-link {
  background: none;
  border: none;
  color: var(--accent-gold);
  font-size: 0.76rem;
  font-family: var(--font-sans);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.2s ease;
}

.jump-plot-link:hover {
  color: var(--text-pure);
}

/* Garden Plot & Sanctuary Switcher */
.garden-plot-nav {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(14, 12, 20, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 30;
  pointer-events: auto;
}

.plot-nav-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: var(--radius-pill);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

.plot-nav-btn:hover:not(:disabled) {
  color: var(--text-pure);
  background: rgba(255, 255, 255, 0.14);
  transform: scale(1.15);
}

.plot-nav-btn:active:not(:disabled) {
  transform: scale(0.92);
}

.plot-nav-btn:disabled {
  opacity: 0.2;
  cursor: not-allowed;
  pointer-events: none;
}

.plot-nav-btn svg {
  width: 13px;
  height: 13px;
}

.plot-name-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 86px;
}

.plot-current-title {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent-gold);
}

.plot-capacity-hint {
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

.status-aura {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-pill);
  background-color: var(--accent-gold);
  display: inline-block;
  animation: pulseAura 2s infinite ease-in-out;
  flex-shrink: 0;
}

.flower-status-tag.planted .status-aura {
  background-color: var(--accent-rose);
}

@keyframes pulseAura {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* --------------------------------------------------------------------------
   Whisper On Flower Touch (Zero-Card, Ambient Floating Thought)
   -------------------------------------------------------------------------- */
.flower-whisper {
  position: absolute;
  z-index: 50;
  pointer-events: auto;
  transform: translate(-50%, -100%) translateY(-24px);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: min(390px, 88vw);
  width: max-content;
  min-width: min(260px, 80vw);
}

.flower-whisper.flip-below {
  transform: translate(-50%, 20px);
}

.whisper-body {
  background: rgba(14, 12, 20, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 75vh;
  overflow-y: auto;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.whisper-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.whisper-author {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-gold);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.whisper-date {
  font-size: 0.72rem;
  color: var(--text-dim);
  white-space: nowrap;
}

.whisper-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 3.2vw, 1.25rem);
  line-height: 1.45;
  color: var(--text-pure);
  font-style: italic;
  font-weight: 300;
  text-wrap: pretty;
  word-break: break-word;
  overflow-wrap: anywhere;
  margin: 0;
  transition: font-size 0.2s ease;
}

.whisper-quote.quote-medium {
  font-size: clamp(0.92rem, 2.7vw, 1.05rem);
  line-height: 1.4;
}

.whisper-quote.quote-long {
  font-size: clamp(0.82rem, 2.3vw, 0.92rem);
  line-height: 1.35;
}

.whisper-interactions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
}

.whisper-touch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: none;
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  font-size: 0.76rem;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.2s ease;
}

.whisper-touch-btn:hover {
  background-color: rgba(229, 135, 158, 0.15);
  color: var(--accent-rose);
}

.whisper-touch-btn.liked {
  color: var(--accent-rose);
  background-color: rgba(229, 135, 158, 0.2);
}

.whisper-touch-btn.liked .heart-icon {
  fill: var(--accent-rose);
}

.touch-text {
  font-size: 0.74rem;
}

.touch-count {
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Ethereal Dialog (Seamless Atmosphere Sheet, Not a Boxed Card)
   -------------------------------------------------------------------------- */
.ethereal-dialog {
  border: none;
  background-color: transparent;
  padding: 20px;
  margin: auto;
  max-width: 520px;
  width: 92vw;
  z-index: 60;
}

.ethereal-dialog::backdrop {
  background-color: rgba(5, 4, 7, 0.88);
  backdrop-filter: blur(8px);
}

.dialog-atmosphere {
  background-color: var(--bg-sheet);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: clamp(24px, 5vw, 36px);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dialog-name {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--text-pure);
}

.dialog-guide {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: -8px;
}

.subtle-close {
  background: none;
  border: none;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  transition: color 0.15s;
}

.subtle-close:hover {
  color: var(--text-pure);
  background-color: rgba(255, 255, 255, 0.08);
}

.ethereal-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-field-line {
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Underline Minimalist Inputs (No boxed border) */
.minimal-input,
.minimal-textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 0;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-pure);
  transition: border-color 0.25s ease;
  border-radius: 0;
}

.minimal-input:focus,
.minimal-textarea:focus {
  outline: none;
  border-bottom-color: var(--accent-rose);
}

.minimal-textarea {
  resize: none;
  line-height: 1.5;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
}

.char-tally {
  align-self: flex-end;
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 4px;
}

.palette-flow {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.palette-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.swatch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.swatch {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.swatch:nth-child(1) { background-color: #e5879e; }
.swatch:nth-child(2) { background-color: #e05370; }
.swatch:nth-child(3) { background-color: #ff85a1; }
.swatch:nth-child(4) { background-color: #c3a6ff; }
.swatch:nth-child(5) { background-color: #f5be47; }
.swatch:nth-child(6) { background-color: #e8bd70; }
.swatch:nth-child(7) { background-color: #ebe6d8; }
.swatch:nth-child(8) { background-color: #ff94b8; }

.swatch.active {
  border-color: #ffffff;
  transform: scale(1.22);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.dialog-action-area {
  margin-top: 14px;
}

.ethereal-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #ffd6e0 0%, #f39cb1 45%, #d56a84 100%);
  color: #140c18;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  cursor: pointer;
  box-shadow: 0 0 28px rgba(229, 135, 158, 0.45), 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 48px;
}

.ethereal-action-btn:hover {
  background: linear-gradient(135deg, #ffe2e9 0%, #faaec1 45%, #e17992 100%);
  color: #0b070f;
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(229, 135, 158, 0.65), 0 12px 30px rgba(0, 0, 0, 0.6);
}

.ethereal-action-btn:active {
  transform: translateY(0);
}

.ethereal-action-btn.full-width {
  width: 100%;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Subtle Toast
   -------------------------------------------------------------------------- */
.subtle-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  background-color: rgba(18, 16, 25, 0.92);
  color: var(--text-pure);
  border: 1px solid rgba(229, 135, 158, 0.25);
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 120;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

.subtle-toast.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Mobile & Niche Viewport Hardening (iOS Safari, Safe Areas, Notch & DPI)
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
  .floating-anchors {
    padding: max(12px, env(safe-area-inset-top, 12px)) max(12px, env(safe-area-inset-right, 12px)) max(12px, env(safe-area-inset-bottom, 12px)) max(12px, env(safe-area-inset-left, 12px));
  }

  .anchor-top-left {
    top: max(14px, env(safe-area-inset-top, 14px));
    left: max(14px, env(safe-area-inset-left, 14px));
  }

  .anchor-top-right {
    top: max(14px, env(safe-area-inset-top, 14px));
    right: max(14px, env(safe-area-inset-right, 14px));
  }

  .anchor-bottom-left {
    bottom: max(14px, env(safe-area-inset-bottom, 14px));
    left: max(14px, env(safe-area-inset-left, 14px));
    max-width: calc(100vw - 210px);
    z-index: 25;
  }

  .anchor-bottom-right {
    bottom: max(14px, env(safe-area-inset-bottom, 14px));
    right: max(14px, env(safe-area-inset-right, 14px));
    z-index: 25;
  }

  .brand-monogram {
    font-size: 1.35rem;
  }

  .garden-tally {
    font-size: 0.72rem;
  }

  .garden-plot-nav {
    padding: 4px 10px;
    gap: 6px;
    top: max(14px, env(safe-area-inset-top, 14px));
  }

  .plot-current-title {
    font-size: 0.78rem;
  }

  .plot-capacity-hint {
    font-size: 0.6rem;
  }

  .btn-label {
    display: none;
  }

  .ethereal-btn {
    padding: 8px 12px;
  }

  .center-whisper {
    width: 90vw;
    top: 13%;
  }

  .whisper-hint {
    font-size: 0.88rem;
    white-space: normal;
    text-wrap: balance;
    line-height: 1.45;
  }

  /* Prevent iOS Safari 16px auto-zoom */
  .minimal-input,
  .minimal-textarea {
    font-size: 16px !important;
  }

  .ethereal-dialog {
    width: 94vw;
    max-height: 90dvh;
    padding: 8px;
  }

  .dialog-atmosphere {
    padding: 22px 18px;
    max-height: calc(90dvh - 16px);
    gap: 16px;
    border-radius: 18px;
  }

  .dialog-name {
    font-size: 1.4rem;
  }

  .dialog-guide {
    font-size: 0.8rem;
  }

  .swatch {
    width: 32px;
    height: 32px;
  }

  .flower-whisper {
    left: 50% !important;
    transform: translate(-50%, -100%) translateY(-20px) !important;
    max-width: min(360px, calc(100vw - 28px));
    width: max-content;
    min-width: min(280px, calc(100vw - 32px));
  }

  .flower-whisper.flip-below {
    transform: translate(-50%, 20px) !important;
  }

  .whisper-body {
    padding: 14px 16px;
    max-width: min(360px, calc(100vw - 28px));
  }

  .whisper-quote {
    font-size: 1.05rem;
  }

  .flower-status-tag {
    padding: 0 12px;
    font-size: 0.76rem;
    min-height: 38px;
    max-width: 100%;
    box-sizing: border-box;
  }

  #myStatusText {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .jump-plot-link {
    flex-shrink: 0;
  }

  .ethereal-btn.highlighted {
    padding: 0 16px;
    font-size: 0.82rem;
    min-height: 38px;
    box-sizing: border-box;
    white-space: nowrap;
  }
}

@media (max-width: 380px) {
  .brand-monogram {
    font-size: 1.2rem;
  }

  .garden-plot-nav {
    padding: 3px 8px;
  }

  .plot-name-wrap {
    min-width: 66px;
  }

  .anchor-bottom-left {
    bottom: max(10px, env(safe-area-inset-bottom, 10px));
    left: max(10px, env(safe-area-inset-left, 10px));
    max-width: calc(100vw - 180px);
  }

  .anchor-bottom-right {
    bottom: max(10px, env(safe-area-inset-bottom, 10px));
    right: max(10px, env(safe-area-inset-right, 10px));
  }

  .ethereal-btn.highlighted {
    padding: 0 12px;
    font-size: 0.78rem;
    min-height: 36px;
  }

  .flower-status-tag {
    padding: 0 10px;
    font-size: 0.72rem;
    min-height: 36px;
    max-width: 100%;
  }
}
