/* Shared control styles for the Poku home page; loaded after the feature styles. */
#poku-secret-garden .sg-gold-button,
#poku-secret-garden .poku-guided-controls button,
#poku-secret-garden .poku-entry-primary,
#poku-secret-garden .poku-entry-secondary,
#poku-secret-garden .sg-soft-button,
#poku-secret-garden .poku-calm-sound > button,
#poku-secret-garden .sg-mode,
#poku-secret-garden .poku-guided-method {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--sg-line);
  border-radius: 14px;
  font: 600 13px/1.4 Arial, Helvetica, sans-serif;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 160ms ease, border-color 160ms ease,
    color 160ms ease, box-shadow 160ms ease;
}

/* Primary actions share one gold treatment. */
#poku-secret-garden .sg-gold-button,
#poku-secret-garden .poku-guided-controls .poku-guided-primary,
#poku-secret-garden .poku-entry-primary {
  background: var(--sg-gold-button);
  border-color: var(--sg-gold);
  color: var(--sg-button-ink);
  box-shadow: 0 3px 10px var(--sg-shadow);
}

/* Supporting actions keep the same quiet green surface. */
#poku-secret-garden .sg-soft-button,
#poku-secret-garden .poku-calm-sound > button,
#poku-secret-garden .poku-guided-controls button:not(.poku-guided-primary),
#poku-secret-garden .poku-entry-secondary {
  background: var(--sg-paper);
  border-color: var(--sg-line);
  color: var(--sg-ink);
  box-shadow: none;
}

#poku-secret-garden .poku-calm-sound > button[aria-pressed="true"] {
  background: var(--sg-paper);
  border-color: var(--sg-gold);
  color: var(--sg-ink);
  box-shadow: inset 0 0 0 1px var(--sg-gold);
}

/* Categories use one outlined surface and an unmistakable selected state. */
#poku-secret-garden .sg-mode,
#poku-secret-garden .poku-guided-method {
  padding: 12px 10px;
  background: var(--sg-panel-deep);
  border-color: var(--sg-line);
  color: var(--sg-muted);
  box-shadow: none;
}

#poku-secret-garden .sg-mode {
  flex-direction: column;
  min-height: 76px;
  gap: 7px;
}

#poku-secret-garden .poku-guided-method {
  min-height: 52px;
}

#poku-secret-garden .sg-mode[aria-pressed="true"],
#poku-secret-garden .poku-guided-method[aria-pressed="true"] {
  background: var(--sg-gold-button);
  border-color: var(--sg-gold);
  color: var(--sg-button-ink);
  box-shadow: inset 0 0 0 1px var(--sg-gold);
}

/* Small text actions remain easy to touch without competing with primary actions. */
#poku-secret-garden .sg-hero-note,
#poku-secret-garden .sg-invitation button,
#poku-secret-garden .sg-motion,
#poku-secret-garden .sg-footer button,
#poku-secret-garden .sg-footer a {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  padding: 10px 8px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--sg-muted);
  font: 500 13px/1.4 Arial, Helvetica, sans-serif;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 4px;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
  touch-action: manipulation;
}

#poku-secret-garden .sg-hero-note {
  color: var(--sg-photo-muted);
}

#poku-secret-garden .sg-motion[aria-pressed="true"] {
  color: var(--sg-gold);
}

/* Account access is a separate, compact pill in the header. */
#poku-secret-garden .sg-account {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  min-width: 44px;
  min-height: 44px;
  max-width: 48%;
  padding: 10px 14px;
  border: 1px solid var(--sg-gold);
  border-radius: 999px;
  background: var(--sg-panel-deep);
  color: var(--sg-photo-ink);
  font: 600 13px/1.4 Arial, Helvetica, sans-serif;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}

#poku-secret-garden .poku-entry-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
}

#poku-secret-garden .poku-entry-actions > :is(.poku-entry-primary, .poku-entry-secondary) {
  flex: 1 1 160px;
}

#poku-secret-garden :is(.sg-gold-button, .sg-soft-button, .sg-mode) .poku-icon,
#poku-secret-garden .poku-calm-sound > button .poku-icon {
  width: 20px;
  height: 20px;
  flex: none;
}

#poku-secret-garden :is(.sg-gold-button, .sg-soft-button, .sg-mode,
  .poku-guided-method, .poku-entry-primary, .poku-entry-secondary,
  .sg-account, .sg-hero-note, .sg-motion):focus-visible,
#poku-secret-garden .poku-guided-controls button:focus-visible,
#poku-secret-garden .poku-calm-sound > button:focus-visible,
#poku-secret-garden .sg-invitation button:focus-visible,
#poku-secret-garden .sg-footer :is(a, button):focus-visible {
  outline: 3px solid var(--sg-gold);
  outline-offset: 4px;
}

#poku-secret-garden :is(.sg-gold-button, .sg-soft-button, .sg-mode,
  .poku-guided-method, .poku-entry-primary, .poku-entry-secondary):disabled,
#poku-secret-garden .poku-guided-controls button:disabled,
#poku-secret-garden .poku-calm-sound > button:disabled {
  opacity: .55;
  cursor: default;
  box-shadow: none;
}

@media (hover: hover) {
  #poku-secret-garden :is(.sg-gold-button, .sg-soft-button, .sg-mode,
    .poku-guided-method, .poku-entry-primary, .poku-entry-secondary):hover:not(:disabled),
  #poku-secret-garden .poku-guided-controls button:hover:not(:disabled),
  #poku-secret-garden .poku-calm-sound > button:hover:not(:disabled),
  #poku-secret-garden .sg-account:hover {
    border-color: var(--sg-gold);
    box-shadow: 0 0 0 2px var(--sg-glow);
  }

  #poku-secret-garden :is(.sg-hero-note, .sg-motion):hover,
  #poku-secret-garden .sg-invitation button:hover,
  #poku-secret-garden .sg-footer :is(a, button):hover {
    color: var(--sg-gold);
  }
}

@media (max-width: 360px) {
  #poku-secret-garden .sg-account {
    padding-inline: 10px;
  }

  #poku-secret-garden .sg-gold-button,
  #poku-secret-garden .poku-guided-controls button,
  #poku-secret-garden .poku-entry-primary,
  #poku-secret-garden .poku-entry-secondary {
    padding-inline: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #poku-secret-garden :is(.sg-gold-button, .sg-soft-button, .sg-mode,
    .poku-guided-method, .poku-entry-primary, .poku-entry-secondary),
  #poku-secret-garden .poku-guided-controls button,
  #poku-secret-garden .poku-calm-sound > button {
    transition: none;
  }
}
/* Entry sits over the garden photograph; preserve readable contrast. */
#poku-secret-garden [data-portal-entry]{margin:0 0 15px;padding:14px;border:1px solid #e4ce9566;border-radius:17px;background:#142c23d9;backdrop-filter:blur(8px)}
#poku-secret-garden .poku-entry-copy{font:400 12px/1.6 Arial,sans-serif;color:#e1e4cf;margin:0 0 11px}
#poku-secret-garden .poku-entry-status{font:600 12px/1.5 Arial,sans-serif;color:#e4c997;margin:0 0 10px}
#poku-secret-garden .sg-hero-copy{max-width:100%;padding-top:25px}
#poku-secret-garden .sg-hero-copy>p{margin-bottom:17px}
#poku-secret-garden .sg-hero-copy>[data-enter]{width:100%;font-size:12px;background:#1d3d2e;color:#f5e4bc;border-color:#b9a16b;box-shadow:none}
#poku-secret-garden .sg-hero-note{margin-top:15px}
#poku-secret-garden .sg-header{gap:10px}
#poku-secret-garden .sg-footer #owner-stats{flex-basis:100%;color:var(--sg-gold)}
@media(min-width:450px){#poku-secret-garden .poku-entry-actions>:is(.poku-entry-primary,.poku-entry-secondary){flex-basis:140px}}
